What do they mean by "focus" state here? (second picture with white background)

What do they mean by "focus" state? Is it tab-targeting? Hover? After I click it? And how would you go about achieving it?
No description
No description
6 Replies
lko
lko2mo ago
From MDN:
It is generally triggered when the user clicks or taps on an element or selects it with the keyboard's Tab key.
https://developer.mozilla.org/en-US/docs/Web/CSS/:focus You can style it with
input[type="checkbox]:focus {
/* everything you want */
}
input[type="checkbox]:focus {
/* everything you want */
}
Dovah
DovahOP2mo ago
Roger. Now I just need to figure out how they styled it. xD
lko
lko2mo ago
It looks like they just added an outline
Dovah
DovahOP2mo ago
They say double shadow in FIGMA
Dovah
DovahOP2mo ago
No description
Dovah
DovahOP2mo ago
But what ever. I'll figure it out! Thank for help It is outline! Thanks and dropshadow box-shadow* Do you maybe know how to add code for second click? To style it when it's unchecked? Oh I guess :checked:focus and regular :focus Got it! Thanks a lot!

Did you find this page helpful?