Skip to content

Add ariaDisabled prop to button#11236

Merged
riknoll merged 2 commits into
microsoft:masterfrom
microbit-robert:button-aria
Apr 2, 2026
Merged

Add ariaDisabled prop to button#11236
riknoll merged 2 commits into
microsoft:masterfrom
microbit-robert:button-aria

Conversation

@microbit-robert

Copy link
Copy Markdown
Contributor

The sui button component now has an aria-disabled attribute which uses the new ariaDisabled prop or existing disabled prop to inform screen readers that the button is dimmed or unavailable (language dependent on the screen reader used). Although the button aria-label sometimes has text to inform the user that it is disabled, this is a standard practice approach and will catch instances of where this labelling has been missed.

Remove title from undo / redo buttons as aria-label is present (this avoids output such as "Redo Disabled, Redo") and make use of new ariaDisabled prop.

aria-disabled uses the ariaDisabled or disabled props to inform screen
readers that the button is dimmed or unavailable etc.
Remove title from undo / redo buttons as aria-label is present.
@riknoll riknoll enabled auto-merge (squash) April 2, 2026 17:00
@riknoll riknoll merged commit f9aceb3 into microsoft:master Apr 2, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants