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

feat(ffe-context-message-react): add role="alert" to error message #945

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

torkjels
Copy link
Contributor

Beskrivelse

Bruker samme fremgangsmåte som i eksempel #2 på MDN sin side Using the alert role

Motivasjon og kontekst

Dette gjør at skjermleserbrukere ser skjemafeilmeldinger med én gang de oppstår, på samme måte som en "seende" bruker ser de med én gang.

Testing

Fyrte opp designsystemet på lokal maskin og testet med Talkback på Android og Orca på Firefox.

This allows screen reader users to see an error message immediately when it appears, in the same way that a user not using a screen reader would see it immediately.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 84.697% when pulling e3aeaef on context-error-message-alert into bb5fc09 on develop.

Copy link
Contributor

@pethel pethel left a comment

Choose a reason for hiding this comment

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

Se kommentar i annen pr anngående timeout

@torkjels torkjels merged commit 373b263 into develop Oct 2, 2020
@torkjels torkjels deleted the context-error-message-alert branch October 2, 2020 08:29
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.

4 participants