nvda icon indicating copy to clipboard operation
nvda copied to clipboard

Report HTML alerts in Braille

Open vincent-lg opened this issue 5 years ago • 4 comments

Alerts in HTML, using the "alert" ARIA role, are not reported in Braille.

Steps to reproduce:

Here's a single HTTML/JavaScript script:

<button id="alert-trigger">
  Trigger Alert
</button>
<div id="example" role="alert"></div>

<script>
window.addEventListener('load', function () {

  var button = document.getElementById('alert-trigger');

  button.addEventListener('click', addAlert);

});

/*
* @function addAlert
*
* @desc Adds an alert to the page
*
* @param   {Object}  event  -  Standard W3C event object
*
*/

function addAlert (event) {

  var example = document.getElementById('example');
  var template = document.getElementById('alert-template').innerHTML;

  example.innerHTML = template;

}
</script>

This example comes from the ARIA official examples.

Actual behavior:

Currently, the text is spoken on alert, but nothing is displayed on the Braille display. Normal? Perhaps such a feature would flood Braille users with information.

Expected behavior:

I am one of the NVDA users who doesn't use speech in NVDA, just Braille, so this actually makes information harder to find especially if they are "flash" notifications. I suggest instead that they could appear in a Braille flash message (gone 5 seconds later or the user could just press a routing button to dismiss the notification, as is already the case).

If this feature actually means drowning the user with information, I suggest to make it an optional feature with either a global setting, or an ability to change this setting based on the website. That will add complexity for sure, but I'm not entirely sure why NVDA doesn't already present Braille users with this information.

System configuration

NVDA installed

NVDA version: 2019.1

Windows version: 10 (64-bit)

vincent-lg avatar Mar 07 '19 17:03 vincent-lg

cc: @leonardder, @Andre9642

Adriani90 avatar Nov 21 '19 19:11 Adriani90

I would like this to be fixed as well as I occasionally use NVDA with a braille display with the speech turned off. Professionally, I do accessibility testing and see this having a severe negative impact for Deafblind users.

kayatli avatar Jan 10 '21 18:01 kayatli

As I already pointed out in #7756 I think having a toggle to read these can be quite the productivity booster. There are times when working with braille only is preferred or even the only option, and while I respect that incorrect alert spam can be debilitating in such a scenario, having the option is definitely a requirement for making sure no information is missed in such a scenario.

zersiax avatar Mar 28 '21 23:03 zersiax

Yes, as another user who only uses Braille display, I can only agree to the previous comments and say that productivity could grow a lot if those alerts could be shown on the Braille display as well. In today's world with so many web-apps, those alerts fullfill my personal definition of normal notifications, and therefore should get the possibility to be treated the same, as I see it. I'd be very happy if you could fix that.

fcnjd avatar Jul 09 '22 17:07 fcnjd

in NVDA advanced settings under the group braille, there is a setting called "report live regions" which is enabled by default. Does this setting not fix this problem?

Adriani90 avatar Sep 05 '23 16:09 Adriani90

Yes, it seems to allow it. Thanks,

vincent-lg avatar Sep 06 '23 14:09 vincent-lg