Description
Screen readers do not announce slide content changes when the user navigates between slides because the slide container has no ARIA live region. As a result, mdeck presentations are inaccessible to users who rely on assistive technology.
Expected behaviour
The slide container should have an aria-live attribute so screen readers automatically read out the content of the new slide whenever it changes.
Suggested implementation
Add aria-live="polite" (or assertive for more immediate announcement) to the slide <div> in src/mdeck/resources.ts:
<div class="remark-slides-area" aria-live="polite">
...
</div>
This has been tested in remark with macOS VoiceOver and confirmed to work as expected.
Ported from gnab/remark#654
Description
Screen readers do not announce slide content changes when the user navigates between slides because the slide container has no ARIA live region. As a result, mdeck presentations are inaccessible to users who rely on assistive technology.
Expected behaviour
The slide container should have an
aria-liveattribute so screen readers automatically read out the content of the new slide whenever it changes.Suggested implementation
Add
aria-live="polite"(orassertivefor more immediate announcement) to the slide<div>insrc/mdeck/resources.ts:This has been tested in remark with macOS VoiceOver and confirmed to work as expected.
Ported from gnab/remark#654