Accessibility
- The set adds no role and no tab stop of its own. Each button is a real
NbButtonwith its own name, state and focus ring. - The tab order follows the reading order by default: left to right in a row, top to bottom in a column, so focus never jumps against the eye.
focus-order="rank", whichNbModal's footer uses, puts the primary first and then moves left: Carbon's dialog order, where from the body the commit is one Tab away and the way out is one more. In a rank set, stacking for a phone changes only the stylesheet, so the order is the same at every width.- Buttons are keyed by their slot position, so a button that appears or disappears behind a
v-ifdoes not move focus off the button the user is on.