Skip to content

Add visually hidden document labels to buttons for accessibility#1055

Open
nonprofittechy wants to merge 2 commits into
mainfrom
screenreader-friendly-download-view-buttons
Open

Add visually hidden document labels to buttons for accessibility#1055
nonprofittechy wants to merge 2 commits into
mainfrom
screenreader-friendly-download-view-buttons

Conversation

@nonprofittechy
Copy link
Copy Markdown
Member

@nonprofittechy nonprofittechy commented May 20, 2026

Style is unchanged, but this allows screen reader users to be able to tell what button they are interacting with. Tested with Narrator and NVDA in Windows; this seems like a good fix.

Can revisit/discuss including full document text in visible label with more of our user base, but this should be compatible for now.

Fix #1054

Note: we should also update translations to match as this involves some Docassemble template edits, not just in the Python code.

I tested with the test_aldocument.yml file.

Edit: 94a5e35 moves the default text for send_button_html() to the right place; also has side effect of making this more consistently translatable (must have been missed in a prior change)

…emains same but download/view buttons have semantic labels
Copy link
Copy Markdown
Contributor

@BryceStevenWilley BryceStevenWilley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with Voice Over on Mac and iPhone, works well on Mac, works on iPhone with a few quirks (it splits up the text inside each link, so that it reads "View [form title]", "View", "[form title]", "Download [form title]", "Download", "[form title]"). But each of those links still works, and the full context comes first, so I'm okay with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Download buttons are not accessible when navigated to with [TAB] key

2 participants