Skip to content

CSS: cursor ​

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

Source: index.ts

Usage ​

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

Examples ​

Modifiers ​

ModifierDescription
.--cursor-autocursor: auto.
.--cursor-defaultcursor: default.
.--cursor-grabcursor: grab.
.--cursor-movecursor: move.
.--cursor-not-allowedcursor: not-allowed.
.--cursor-pointercursor: pointer.
.--cursor-textcursor: text.
.--cursor-waitcursor: wait.

Accessibility ​

The cursor only affects pointer users; a pointer cursor doesn't make an element operable. Put it on native controls (button, a), and never use --cursor-not-allowed or --cursor-wait as the only sign that something is disabled or busy.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
forced-colors-focus-visibleWCAG 2.2 1.4.11, 2.4.7PassPassPassPass
more-contrast-respectedWCAG 2.2 1.4.3, 1.4.6PassPassPassPass
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.