Accessibility
- The popover is a
role="dialog"witharia-modal="true". Focus moves into it when the tour starts, so a screen reader announces the title and body before the controls. - Tab is trapped inside the popover: the page behind the scrim is not interactive, and letting focus walk out of the dialog would strand the user on invisible controls.
- Escape skips the tour.
- Focus returns to whatever was focused before the tour started, so a tour launched from a help menu returns you to the menu.
- The step counter is
aria-live="polite", so advancing announces the new position. - Under
prefers-reduced-motion: reduce, the popover animation is dropped and scrolling a target into view becomes an instant jump instead of a smooth scroll.