Zazz Design Framework
baseUtilities

Interactivity

Pointer behavior, focus ring utility, and screen-reader accessibility helpers.

Interactivity utilities control pointer events, manual focus rings, and screen-reader content visibility.

Pointer and cursor

ClassDeclarationPurpose
pointer-events-nonepointer-events: noneMakes element transparent to clicks
pointer-cursorcursor: pointerAdds hand pointer to non-button elements
pointer-defaultcursor: defaultRestores standard arrow cursor

Focus ring

ring applies the system focus ring to custom elements. It uses box-shadow offsets and activates on :focus-visible:

<a href="#" class="ring rounded-md">Keyboard-focusable link</a>
  • Inactive when unfocused: --_ring-width and --_ring-offset-width sit at 0.
  • Ring color defaults to --primary; offset uses --ring-offset-color (page background).
  • A matching transparent outline ensures visibility in forced-colors mode.

Screen-reader only

sr-only visually hides content while keeping it accessible to screen readers:

<button class="ui-button" data-size="icon">
  <svg aria-hidden="true"><!-- icon --></svg>
  <span class="sr-only">Close dialog</span>
</button>

On this page