What the component guarantees
- A named toolbar. The set is
role="toolbar", named by the requiredlabeland oriented byaria-orientation. - Named groups. A group given a
labelisrole="group"with that name, so "Zoom" and "Align" read as two sets of controls. A group without one adds nothing to the accessibility tree. - Order follows the page. The set comes after the canvas in the DOM, so Tab reaches the controls after the canvas, and each control is its own tab stop in visual order.
- Tested in
tests/CanvasControls.test.ts.
What you provide
- A name for every icon button. Give each ghost
NbButtonalabel. It is the button's accessible name and its tooltip. - A keyboard way to do what the canvas does. Controls over a canvas are often the only keyboard route to zoom or fit. Offer each canvas gesture that matters as a control here.