Open gfellerph opened 2 weeks ago
In our examples, the label is not visible, but in a real world application, a button group should have a visible label. For this case, I think it would be better to use a fieldset / legend construct (https://www.w3.org/WAI/tutorials/forms/grouping/#associating-related-controls-with-wai-aria).
A breaking change can be prevented by supporting the current structure as well as the fieldset > legend one. Possibly, the current structure could be a variant where it's not possible or necessary to show the label.
In our examples, the label is not visible, but in a real world application, a button group should have a visible label. For this case, I think it would be better to use a fieldset / legend construct (https://www.w3.org/WAI/tutorials/forms/grouping/#associating-related-controls-with-wai-aria).
A breaking change can be prevented by supporting the current structure as well as the fieldset > legend one. Possibly, the current structure could be a variant where it's not possible or necessary to show the label.