Feature request
Summary
Love the project, keen on integrating it on my workflows. Thus, reaching out about adding a Button component to base-ui that is fully WAI-ARIA compliant.
Please give feedback on the requirements spec I provided, or, just close this issue if you're already in progress for pushing Buttons to the library.
References
The WAI-ARIA Authoring Practices Guide provides a detailed example of how to implement an accessible button: Button Pattern
Motivation
I am not 100% sure what would meet your design philosophy, but, the following requirements spec is based on my assumptions of what would be ideal.
Requirements for the Base UI Button
Based on the WAI-ARIA specifications, the Button component should have the following:
Feature request
Summary
Love the project, keen on integrating it on my workflows. Thus, reaching out about adding a
Buttoncomponent to base-ui that is fully WAI-ARIA compliant.Please give feedback on the requirements spec I provided, or, just close this issue if you're already in progress for pushing Buttons to the library.
References
The WAI-ARIA Authoring Practices Guide provides a detailed example of how to implement an accessible button: Button Pattern
Motivation
I am not 100% sure what would meet your design philosophy, but, the following requirements spec is based on my assumptions of what would be ideal.
Requirements for the Base UI
ButtonBased on the WAI-ARIA specifications, the Button component should have the following:
button.aria-labelledbyoraria-label.aria-describedbyset to the ID of the description element.aria-disabledshould be set totrue.aria-pressedshould be used with valuestrue(on) orfalse(off).aria-haspopupshould be set tomenuortrue.SpaceorEnterkeys. The focus behavior should depend on the type of action the button performs.Enter,Esc) which can be flagged via a prop passed to the button ortype.