Skip to content

CSS: layout ​

.--display-flex — Display and text-align utilities — .--display-<value> and .--text-align-<value> — as composable, global classes, usable bare or chained onto any component.

Source: index.ts

Usage ​

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

Examples ​

Modifiers ​

ModifierDescription
.--display-flexSets display: flex.
.--display-*Display utilities: block, inline-block, inline, flex, inline-flex, and none.
.--text-align-*Text-alignment utilities: start, center, end, and justify.

Accessibility ​

--display-none removes an element from the accessibility tree as well as the screen, so use it only for content nobody needs. Flex and grid layout can't reorder content for assistive tech; keep the DOM order meaningful, and don't center or justify long passages of text.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
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.