question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

role="status" on ContextSuccessMessage and ContextErrorMessage

See original GitHub issue

Which package is this issue related to?

ffe-context-message-react

Describe your issue (screenshots welcome!)

During an accessibility workshop today by Morten Tollefsen from MediaLT, it was brought up that screen readers are not notified of dynamically added ContextMessage elements. As a result, users using technologies such as screen readers tend to miss these error and success messages.

What is the expected behavior?

The message is read out by the screen reader

What is the actual behavior?

The message is not read out by the screen reader. Users with visual impairments won’t be notified of success/error messages.

Steps to reproduce

In the browser, make a transfer between two of your accounts and there will pop up a green ContextSuccessMessage telling you that the transfer will be completed on your due date. However, this information isn’t presented to people using screen readers as there is no role="alert" or aria-live attribute on the ContextMessage elements.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
pethelcommented, Aug 18, 2020

Lenge seden sist her men i følge kurserna til https://dequeuniversity.com/ så ær ikke ChromeVox representativ og noe man burde bruke for og finne ut av dette.

0reactions
kwltrscommented, Mar 8, 2022

ContextMessages brukes på mange forskjellige måte, så vi kan ikke sette role-attrbutet per default og må overlate ansvaret til appen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ARIA22: Using role=status to present status messages - W3C
This technique uses the status role from the ARIA specification to notify Assistive Technologies (AT) when content has been updated with information about...
Read more >
ARIA: status role - Accessibility - MDN Web Docs
The status role defines a live region containing advisory information for the user that is not important enough to be an alert.
Read more >
Understanding Success Criterion 4.1.3: Status Messages
An author displays an error message in a dialog. Since the dialog takes focus, it is defined as a change of context and...
Read more >
Use ARIA for status messages - Orange digital accessibility ...
3 Status Messages requires that important informations for the user, which do not induce a change of context (no opening of a new...
Read more >
Are Your Website's Status Messages Accessible?
Use appropriate ARIA roles for status messages that don't cause a change of context. · role=”alert" should be used for important information that ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found