What the group does
- The label is a real
<label for>. It points at the first field in the group, so a click on it lands in the field and the field is named by it. - The row is a named group. It carries
role="group"andaria-labelledbythe label, so a screen reader announces every control in it, the button included, in the context of the label. - One message, read with the field. The group's message has its own id, and every field in the group adds it to its
aria-describedby. A grouperroralso setsaria-invalidon the fields. As in a single field, a message present on first render is read on focus, not announced on load, and one that appears later is announced once. - One size. Every control in the row has the same height, from the shared scale, so no control in it is a smaller target than the others.
Keyboard
Nothing new. Tab moves through the field and then each button, in the order they are written. Each control keeps its own keys.
What you own
- A name for every icon-only button. Give it a
label, which names it and shows the same words as its tooltip. - One field per group. Two fields in one group read as one control and are announced as one group.
Known gaps
- No manual screen reader pass has been recorded for this component.