Active Tab Underline with :has()
A tab bar that slides an underline across active tabs by switching container-level custom properties via :has(), with a class-toggle fallback for browsers without :has() support.
A tab bar that slides an underline across active tabs by switching container-level custom properties via :has(), with a class-toggle fallback for browsers without :has() support.
Layout transition / :has() / aria-selected
Reimplements a sliding tab indicator driven by a :has(...) rule on the container, so container custom properties flip whenever the selected descendant changes — no JS class toggling needed.
Equal-weight tabs
Four dashboard tabs share equal width, letting the underline slide across uniform increments via translateX driven by a parent :has(...) rule.
Content-width tabs
An editor-style tab strip where tabs grow to fit their labels; the underline morphs in both x and width between active tabs.
Pill indicator
A browser-style tab bar where a soft pill — not a thin underline — rides behind the active label, driven by the same :has() pattern.