Skip to content

CSS: menu.separator ​

.separator — A divider rule between items (InstUI Menu.Separator).

Usage ​

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/menu.separator.css";

Examples ​

Accessibility ​

Give the divider role="separator" so assistive technology can announce the break between items; without it the rule is purely decorative.

Rules (axe-core)Rebrand (light)Rebrand (dark)CanvasCanvas High Contrast
aria-valid-attr-valueWCAG 2.2 4.1.2Review neededReview neededReview neededReview needed

ARIA attributes must conform to valid values

  • button[popovertarget="actions-menu"]
ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
forced-colors-focus-visibleWCAG 2.2 1.4.11, 2.4.7PassPassPassPass
less-contrast-stays-readableWCAG 2.2 1.4.3PassNot applicableNot applicableNot applicable
more-contrast-respectedWCAG 2.2 1.4.3, 1.4.6PassPassPassPass
reduced-motion-respectedWCAG 2.2 2.3.3, 2.2.2PassPassPassPass
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-menu-separator-background<color>LightDarklight-dark(#E8EAEC, #2D3D49)
--instui-component-menu-separator-height<length>0.0625rem
--instui-component-menu-separator-margin-horizontal<length>0.75rem
--instui-component-menu-separator-margin-vertical<length>0rem