:focus gets focus states wrong @KevinPowell
:focus gets focus states wrong  @KevinPowell
Uploaded April 2025 | Updated December 2026, 3 hours ago
Most developers know they should be using focus states, but sometimes they're asked to remove them because of annoying focus rings where you don't want them. Luckily, :focus-visible fixes those problems.

#css
:focus gets focus states wrongThis selector targets only external linksTake control of your list styling with ::markerContent-First BreakpointsRecreating GTA6s awesome scroll effectCSS detective work made easy with this DevTool featureMaking a wrapper, but with 50 lines of CSSStyle queries can be like dynamic modifier classesWait, line-height works like that?!A responsive card with no media queriesCreate a reflective glow effect with CSSEmulate system color schemes in a couple of clicks
Kevin Powell |

:focus gets focus states wrong

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER