Skip to content

[Radio] Radio button group should contain a 'Legend' property #7263

Description

@woody9944

In order for the radio button group component to be made accessible it should allow the user to define a <legend> element as well as defining a the <fieldset>. For example...

image

This can currently be hard coded when building with material ui but should really be done at the component level.

More information about these grouping controls can be found in the w3 tutorials here:

https://www.w3.org/WAI/tutorials/forms/grouping/

And details regarding there usage in accessibility can be found here:

https://dequeuniversity.com/rules/axe/2.1/radiogroup

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions