Your daily frequent11y newsletter, brought to you by @ChrisBAshton:
- Matthias Ott writes about the situation where clicking on an element activates its
:focus
styles – something that can be perceived as ugly. With this new property, you can style elements if they receive keyboard focus, while avoiding styling if they receive focus via mouse click. Example::focus:not(:focus-visible) { outline: 0 }
paired with:focus-visible { outline: 3px solid blue }
.
Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.