Replies: 1 comment 1 reply
-
Each Story Format defines its own default HTML structure and the CSS used to style it in the template it supplies to the Twine 2.x application, all the application basically does when it generates a Story HTML file is to embed the contents of the project's Passages inside a copy of the template.
I'm not an Accessibility expert, but I did notice that the Notify the user of updates inside the page section of the Recommendations for Single Page Applications page you linked to contains a reference to a The aria-live attribute and the role alert page. And that that page's Notify the user of updates inside the page section recommends using the aria-live attribute...
...and that the Polite value is used to indicate...
...which seems like the desired outcome after a Passage Transition (task) has finished.
This might be difficult to do, as currently the story format's default HTML structure doesn't include such an element. And there isn't any guarantee that an Author will include such in the content of the Passage, nor might an Author from a game styling styling point-of-view want to have such a header appear at the top of each Passage visited forced upon then. But I could be wrong, or misunderstanding the situation, because as I stated earlier I'm not Accessibility expert. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I noticed while testing my first story for accessibility that Twine defaults to wrapping the entire passage in
aria-live="polite"
:<tw-passage class="passage" aria-live="polite">
I find this to be an incorrect usage of an aria-live region and I have to cut it out via Javascript in order to get desired screen reader behavior. Not only that, but it actively interferes with other common techniques to get the screen reader to read state changes that don't involve navigation. Basically, I follow the instructions from the orange documentation and do the following:
I created this as a discussion instead of a bug or feature because:
polite
behavior.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions