Skip to content

CSS: maskglobal ​

.--mask-overlay — A global, dual copy of the mask component's overlay modifiers — --mask-overlay, --mask-fullscreen, --mask-blur — usable bare or chained onto any component, without wrapping in a .instui-mask element.

Source: index.ts

Usage ​

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

Examples ​

Modifiers ​

ModifierDescription
.--mask-blurBlur what's behind the mask with a backdrop-filter.
.--mask-fullscreenFixed to the viewport, covering it at a high z-index.
.--mask-overlayThe full mask overlay (position, centring, background).

Conditions ​

TypeQueryDescription
media(prefers-reduced-transparency: reduce)—

Accessibility ​

A mask covers content visually but doesn't block assistive tech or the keyboard: make the covered region inert (or mark it aria-busy), keep the mask's own message as real text, and don't hide the focus indicator behind it.

Rules (axe-core)Rebrand (light)Rebrand (dark)CanvasCanvas High Contrast
color-contrastWCAG 2.2 1.4.3Review neededReview neededReview neededReview needed

Elements must meet minimum color contrast ratio thresholds

  • p
ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
reduced-transparency-respectedWCAG 2.2 1.4.3, 1.4.11PassPassPassPass
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.

Tokens consumed ​

TokenTypeValue
--instui-component-mask-background-color<color>LightDarklight-dark(rgba(255,255,255,0.75), rgba(28,34,43,0.75))