Ant Design currently generates inaccessible forms. Blind people cannot use forms made by Ant Design.
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
A substantial percentage of the internet relies on screen readers (e.g. all blind people, many old people, etc.) - and having forms be easily read by them is critical. People who use screen readers currently cannot use forms generated by Ant Design.
Considering how widely adopted And Design is, many people are trying to access Ant Design forms with screen readers daily - and currently, they can't read them. AntD has been advertised as an accessible platform, and accordingly - I hope that it is updated to make forms accessible.
Here is a post with a lot more info (including screenshots of current problems): #16268
What does the proposed API look like?
The proposed API would be the same as it is currently. However, the output would be very slightly different. All that's needed is 2 extra attributes per
<Form.Item/> - e.g.
for in label, and
id in input. That's really all that's needed for all the Ant Design forms to become accessible!!
As an alternative, perhaps the top level
<Form /> can have an extra prop available called
accessible that is a boolean, and when set to
true, forms are made accessible. (personally, however, i think they should be accessible by default always).
- Radio Buttons
description ref: comment