Skip to content

CSS: position ​

.--position-relative — position as a composable, global class — .--position-<value> — usable bare or chained onto any component (.instui-button.--position-relative).

Source: index.ts

Usage ​

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

Examples ​

Modifiers ​

ModifierDescription
.--position-absoluteposition: absolute.
.--position-fixedposition: fixed.
.--position-relativeposition: relative.
.--position-staticposition: static.
.--position-stickyposition: sticky.

Accessibility ​

Positioning changes where content appears, not where it sits in the DOM: keep the visual order matching the reading and focus order, and don't let positioned content cover a focused control.

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.