Skip to content

Components: Assign Alert role by type#6312

Merged
aduth merged 2 commits intomainfrom
aduth-sync-alert-role
May 5, 2022
Merged

Components: Assign Alert role by type#6312
aduth merged 2 commits intomainfrom
aduth-sync-alert-role

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 5, 2022

Why:

  • Alignment to AlertComponent Rails ViewComponent implementation (source)
  • To avoid assertively announcing alert text for non-urgent alerts
    • [role=status is a] type of live region whose content is advisory information for the user but is not important enough to justify an alert

      https://w3c.github.io/aria/#status

aduth added 2 commits May 5, 2022 10:05
**Why**:

- Alignment to AlertComponent Rails ViewComponent implementation
- To avoid assertively announcing alert text for non-urgent alerts

changelog: Improvements, Accessibility, Use status role for non-urgent alert content
@aduth aduth merged commit e750142 into main May 5, 2022
@aduth aduth deleted the aduth-sync-alert-role branch May 5, 2022 14:54
peggles2 pushed a commit that referenced this pull request May 5, 2022
* TypeScript-ify Alert component

* Components: Assign Alert role by type

**Why**:

- Alignment to AlertComponent Rails ViewComponent implementation
- To avoid assertively announcing alert text for non-urgent alerts

changelog: Improvements, Accessibility, Use status role for non-urgent alert content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants