Accessibility
- Every action is a real
NbButton. Folded to an icon (oriconOnly), its label becomes the button'slabel: the accessible name a screen reader hears, and the tooltip a sighted user sees. A disabled one with adisabledReasonstays focusable and shows the reason in that tooltip. - The overflow trigger is named by
overflowLabel("More actions") and carriesaria-haspopup="menu"andaria-expanded. - The menu takes focus on its first row when it opens and hands it back to the trigger when it closes from the keyboard or after a choice.
- A disabled or loading action does nothing when chosen, from either its button or its menu row.