You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are cases where it would be worth grouping multiple fields within a fieldset element with a legend. Should add_settings_section() optionally output a fieldset with legend?
The text was updated successfully, but these errors were encountered:
If it is fine to allow fieldsets with another fieldset within (consider a fieldset section which has a radio field inside), I think this is a valuable enhancement.
It is possible to nest one <fieldset> element inside another, but it is not recommended. Screen readers do not automatically indicate the end of the <fieldset> element, so it is impossible for screen reader users to confidently know which fields belong within which fieldset.
Not sure whether we should allow that then. I wouldn't like to add complex logic to disallow using fields that require fieldsets (radio for example) in fieldset sections.
So it depends on whether we want to open up that possibility and risk accessibility issues, but on the other hand provide more flexibility.
There are cases where it would be worth grouping multiple fields within a fieldset element with a legend. Should
add_settings_section()
optionally output a fieldset with legend?The text was updated successfully, but these errors were encountered: