Harbor UI · Component kit v2.4

Accessible overlays, done properly

Three overlay patterns from the Harbor design system — a modal dialog, toast notifications and tooltips — each built to WAI-ARIA practice. Try them with a mouse, then try them using only your keyboard.

Modal dialog

Confirms a destructive action. Everything behind it becomes inert while it’s open.

  • Tab / Shift+Tab cycle inside the dialog
  • Esc, Cancel or the backdrop closes it
  • Focus returns to the button that opened it

Toast notifications

Status messages announce politely; errors use an assertive alert region so they interrupt.

  • Timers pause on hover and keyboard focus
  • Esc dismisses a focused toast
  • Errors stay up longer: 8 seconds

Tooltips

Short descriptions linked with aria-describedby. They supplement a label and never hold essential info.

  • Hover (short delay) or focus to show
  • Esc hides it without moving focus
  • Hovering the tooltip itself keeps it open
Pin to sidebar for quick accessCreate a view-only linkBilling cycle: MonthlyRenews on the 1st of each month. Plan changes apply at the next renewal.

Event log

A visual record of focus moves and announcements. It’s hidden from screen readers to avoid double announcements.