Skip to content

components: [Alert] Add ARIA role#2552

Merged
hasparus merged 19 commits into
developfrom
lachlanjc-patch-1
Dec 29, 2025
Merged

components: [Alert] Add ARIA role#2552
hasparus merged 19 commits into
developfrom
lachlanjc-patch-1

Conversation

@lachlanjc
Copy link
Copy Markdown
Member

The Alert component previously was a div with no semantics. Adding role=alert to improve a11y.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/alert_role

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
theme-ui Ready Ready Preview, Comment Dec 29, 2025 4:52pm
theme-ui-next Error Error Dec 29, 2025 4:52pm

@lachlanjc lachlanjc changed the title [components] Alert: Add ARIA role components: [Alert] Add ARIA role Dec 26, 2025
@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Dec 26, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b7615af:

Sandbox Source
next-theme-ui-example Configuration
gatsby-plugin-theme-ui-example Configuration

@hasparus
Copy link
Copy Markdown
Member

@copilot can you update the snapshot here? This is intended diff.

      <div
        className="emotion-0"
    +   role="alert"
      />

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 29, 2025

@hasparus I've opened a new pull request, #2554, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits December 29, 2025 14:36
Co-authored-by: hasparus <15332326+hasparus@users.noreply.github.com>
Update Alert snapshot for role="alert" attribute
@hasparus hasparus self-requested a review as a code owner December 29, 2025 16:06
@hasparus hasparus merged commit a43fca7 into develop Dec 29, 2025
9 of 11 checks passed
@hasparus hasparus deleted the lachlanjc-patch-1 branch December 29, 2025 16:59
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.

3 participants