Skip to content
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

Use aria-live="polite" for flash_groups #5920

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

mattmatters
Copy link
Contributor

This nicely notifies screen readers and such of changed content/alerts.

See aria-live for more info.

I've seen some folks use assertive instead of polite for the aria-live setting in a flash/toast context. I'm unsure if there is a defacto one to use in this case though. Open to feedback!

This nicely notifies screen readers and such of changed
content/alerts.

See
[aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)
for more info.
@ponychicken
Copy link
Contributor

I think for most cases "polite" seems like a reasonable choice. In any case, its part of CoreComponents, so if users desire they can easily alter the default.

@SteffenDE SteffenDE merged commit b4b0645 into phoenixframework:main Nov 26, 2024
3 of 7 checks passed
@SteffenDE
Copy link
Contributor

Thank you! 🙌

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