Skip to content

use aria-labels, not alt text, on icons - #3091

Merged
pstaabp merged 1 commit into
openwebwork:WeBWorK-2.21from
Alex-Jordan:aria-labels
Jul 27, 2026
Merged

use aria-labels, not alt text, on icons#3091
pstaabp merged 1 commit into
openwebwork:WeBWorK-2.21from
Alex-Jordan:aria-labels

Conversation

@Alex-Jordan

Copy link
Copy Markdown
Contributor

The icons we use for indicating problem set type are icons, not img elements. They can't have alt text. Instead, apply the img role and an aria-label.

@drgrice1 drgrice1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good other than a minor code formatting issue.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@pstaabp
pstaabp merged commit 9ed437c into openwebwork:WeBWorK-2.21 Jul 27, 2026
2 checks passed
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.

3 participants