I'd like the screenreader to read the text "Stories, menu item" when the mouse hovers over the "Stories" button in the menu bar. I have tried to add aria-label as well as aria-describedby inside the span but the screenreader is still reading the "Stories" text, instead of "stories, menu item" text.
Original code:
<li role="menuitem">
<span class="">Stories</span>
</li>
Things that I tried but doesn't work:
(1) Adding aria-label
<li role="menuitem">
<span class="" aria-label="stories, menu item">Stories</span>
</li>
(2) Adding aria-describedby
<li role="menuitem">
<span class="" aria-describedby="stories, menu item">Stories</span>
</li>
You can include some additional text for screen readers only:
CSS taken from Bootstrap 3:
Adapted from this answer.