Skip to content

CSS: overflow ​

.--overflow-x-hidden — overflow-x/overflow-y as composable, global classes — .--overflow-x-<value> / .--overflow-y-<value> — usable bare or chained onto any component.

Source: index.ts

Usage ​

css
@import "@pantoken/components/utilities.css";

Examples ​

Modifiers ​

ModifierDescription
.--overflow-x-autooverflow-x: auto.
.--overflow-x-clipoverflow-x: clip.
.--overflow-x-hiddenoverflow-x: hidden.
.--overflow-x-scrolloverflow-x: scroll.
.--overflow-x-visibleoverflow-x: visible.
.--overflow-y-autooverflow-y: auto.
.--overflow-y-clipoverflow-y: clip.
.--overflow-y-hiddenoverflow-y: hidden.
.--overflow-y-scrolloverflow-y: scroll.
.--overflow-y-visibleoverflow-y: visible.

Accessibility ​

A scrollable region must work from the keyboard: give it tabindex="0", a role, and an accessible name (or make sure it contains a focusable control). Don't use hidden or clip to cut off content people need to read.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
forced-colors-focus-visibleWCAG 2.2 1.4.11, 2.4.7PassPassPassPass
reflow-at-320pxWCAG 2.2 1.4.10PassPassPassPass
text-spacing-no-clippingWCAG 2.2 1.4.12PassPassPassPass
Screen reader (simulated)Rebrand (light)Rebrand (dark)CanvasCanvas High Contrast
AnnouncementsPassPassPassPass

These automated results do not establish that the page meets WCAG; manual review is still needed.