-
Notifications
You must be signed in to change notification settings - Fork 905
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
Add aria-disabled support to button and icon button #5672
Comments
I think it makes most sense to align with chip for now and expose it as |
copybara-service bot
pushed a commit
that referenced
this issue
Jul 10, 2024
Aligns with the `alwaysFocusable` property that's currently provided by chip. Fixes #5672. PiperOrigin-RevId: 650632329
copybara-service bot
pushed a commit
that referenced
this issue
Jul 10, 2024
Aligns with the `alwaysFocusable` property that's currently provided by chip. Fixes #5672. PiperOrigin-RevId: 650632329
copybara-service bot
pushed a commit
that referenced
this issue
Jul 11, 2024
Fixes #5672. PiperOrigin-RevId: 651409230
copybara-service bot
pushed a commit
that referenced
this issue
Jul 11, 2024
Fixes #5672. PiperOrigin-RevId: 651409230
copybara-service bot
pushed a commit
that referenced
this issue
Jul 11, 2024
Fixes #5672 PiperOrigin-RevId: 651409230
copybara-service bot
pushed a commit
that referenced
this issue
Jul 11, 2024
Fixes #5672 PiperOrigin-RevId: 651409230
copybara-service bot
pushed a commit
that referenced
this issue
Jul 12, 2024
Fixes #5672 PiperOrigin-RevId: 651409230
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Today, button and icon button only support native
[disabled]
. They should also supportaria-disabled
.The chip component exposes an
always-focusable
attribute for this:material-web/chips/internal/chip.ts
Line 46 in 7867674
We could copy that same API, or we could add a new
aria-disabled
attribute to button and icon button.Pros for
always-focusable
Pros for
aria-disabled
aria-*
APIs exposed on button (e.g.aria-label
,aria-haspopup
, etc)I also noticed while looking at chip's implementation that it doesn't set
aria-disabled
on its inner button if it's disabled and always focusable. It probably should?material-web/chips/internal/filter-chip.ts
Line 64 in 7867674
The text was updated successfully, but these errors were encountered: