Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make disabled buttons focusable #132

Merged
merged 1 commit into from
Nov 26, 2023
Merged

Make disabled buttons focusable #132

merged 1 commit into from
Nov 26, 2023

Conversation

kerryarchibald
Copy link
Contributor

@kerryarchibald kerryarchibald commented Nov 23, 2023

This change removes the use of the disabled attribute on disabled buttons, and adds aria-disabled.
This means disabled buttons are discoverable by keyboard, and have a more consistent behaviour with Button-as-anchor

For element-hq/element-web#26634

No visual changes
Screenshot 2023-11-24 at 10 20 11

@kerryarchibald kerryarchibald added the enhancement New feature or request label Nov 23, 2023
@kerryarchibald kerryarchibald marked this pull request as ready for review November 23, 2023 21:22
@kerryarchibald kerryarchibald requested a review from a team as a code owner November 23, 2023 21:22
@kerryarchibald kerryarchibald requested review from dbkr and t3chguy and removed request for a team November 23, 2023 21:22
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane

@kerryarchibald kerryarchibald merged commit 916843f into main Nov 26, 2023
6 of 7 checks passed
@kerryarchibald kerryarchibald deleted the kerry/button branch November 26, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants