-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
What problem does this address?
For more context: this topic was first pointed out in #42118 (comment) and #42095, and recently discussed in #42351 (review)
There are a few instances in the @wordpress/components package where multiple input elements are combined into higher-level components without appropriate labelling.
As established in previous conversations (see links above) and in w3c's official documentation, the most correct way would be to associate related inputs by wrapping them in a fieldset elements, while keeping individual labels for each single input.
The challenge in doing so is to avoid nested fieldsets when composing components which already internally group multiple inputs. For example:
BorderControlis rendered byBorderBoxControl(as discussed in BorderBoxControl: Improve accessibility and labelling #42351 (review))UnitControlis rendered byRangeControland many other higher-level controls- ... and many others
What is your proposed solution?
We should come up with a solution that can be applied systematically across all *Control components.