Skip to content

fix(ui-buttons): keep the caller's aria-disabled on an enabled Button - #2838

Open
aaronshaf wants to merge 1 commit into
masterfrom
fix/ui-buttons-preserve-aria-disabled
Open

aaronshaf wants to merge 1 commit into
masterfrom
fix/ui-buttons-preserve-aria-disabled

Conversation

@aaronshaf

@aaronshaf aaronshaf commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Test Plan

  • Render <Button aria-disabled="true"> and check the element has aria-disabled="true" and is still focusable.
  • Render <Button interaction="disabled"> and check it still has aria-disabled="true".

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2838/

Built to branch gh-pages at 2026-12-01 18:01 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

#2761 sets aria-disabled itself, so a value passed by the caller was overwritten with undefined
whenever the Button was enabled. Consumers rely on it to mark a Button as dimmed but still
focusable, for example while an action loads.
@aaronshaf
aaronshaf force-pushed the fix/ui-buttons-preserve-aria-disabled branch from 4e1fa67 to b753d82 Compare December 1, 2026 17:54
@aaronshaf aaronshaf self-assigned this Dec 1, 2026
github-actions Bot pushed a commit that referenced this pull request Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

Cypress suite: ✅ Passing

Visual diff: ✅ No changes.

Status Count
Unchanged 111
Changed 0
New 0
Removed 0

Accessibility (axe): ✅ No violations.

📊 View full report — click a screenshot's ⚠ badge to see each violation boxed on the image, with the offending element named and contrast failures shown as color swatches.

Baselines come from the visual-baselines branch. They refresh on every merge to master. The Cypress suite line covers the a11y and console-error assertions — a ❌ there means the suite found real issues even if the visual diff is clean.

@matyasf
matyasf requested review from HerrTopi and matyasf December 2, 2026 10:22

@matyasf matyasf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good!

This branch has not been deployed

No deployments
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