Search

Nalezeno ":focus-within": 4

How We Improved the Accessibility of Our Single Page App Menu


I recently started working on a Progressive Web App (PWA) for a client with my team. We’re using React with client-side routing via React Router, and one of the first elements that we made was the main menu. Menus … The post How We Improved the Accessibility of Our Single Page App Menu...

Fixing Smooth Scrolling with Find-on-Page


Back when we released the v17 design (we’re on v18 now) of this site. I added html { scroll-behavior: smooth; } to the CSS. Right away, I got comments like this (just one example): … when you control+f or … The post Fixing Smooth Scrolling with Find-on-Page appeared first...

How to Create a “Skip to Content” Link


Skip links are little internal navigation links that help users move around a page. It’s possible you’ve never actually seen one before because they’re often hidden from view and used as an accessibility enhancement that lets keyboard users and screen readers jump from the top of the page to...

Don’t comma-separate :focus-within if you need deep browser support


I really like :focus-within. It's a super useful selector that allows you to essentially select a parent element when any of its children are in focus. Say you wanted to reveal some extra stuff when a <div> is hovered... div:hover { .extra-stuff { /* reveal it */ } } That's...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace