eureka2 / ab-datepicker

An accessible and bootstrap compatible datepicker
MIT License
63 stars 55 forks source link

When focus goes to date in calendar NVDA screen reader read it twice. It should be read as only once to avoid confusion to user #45

Closed rakeshy3 closed 5 years ago

rakeshy3 commented 5 years ago

When focus goes to date in calendar NVDA screen reader read it twice. It should be read as only once to avoid confusion to user. read twice in calendar

eureka2 commented 5 years ago

Hi,

I can't reproduce this issue with NVDA 2019.1.1 : image

rakeshy3 commented 5 years ago

I have tested it in chrome browser (70.0.3538.67).

eureka2 commented 5 years ago

If you want to avoid this behavior, delete one of the two lines 717 or 718:

            gridCells += ' title="' + longdate + '"';
            gridCells += ' aria-label="' + longdate + '"';

Take a look here: https://www.deque.com/blog/text-links-practices-screen-readers/, here: https://github.com/nvaccess/nvda/issues/7841 and here: http://pauljadam.com/demos/title-aria-label.html

If you choose to remove the title attribute, there will be no more tooltip when you move the mouse.

rakeshy3 commented 5 years ago

ok