Accessibility
- A
statuslive region: its message is announced politely, and focus is not moved to it. - Pressing
focusShortcut(F8by default, with no modifiers held; stamped on the action button asaria-keyshortcuts) moves focus to an actionable snackbar's action button, pauses the auto-dismiss timer while focus stays inside (focusin/focusout), and restores focus onclose()to the element that had focus when the key was pressed. On macOS the platform may require the Fn key: pressFn+F8unless function keys are set as standard keys. Escapecloses it while focus is inside it. If focus was inside when it closed, it goes back where it came from.- Its countdown pauses while the pointer is over it or focus is inside it. With an action, it stays until it is used or dismissed.
- The close button is named by
closeLabel.