-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhosphorIcon: default role to img when aria-label is provided #2358
Conversation
🦋 Changeset detectedLatest commit: e9644a1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
Size Change: +43 B (+0.04%) Total Size: 101 kB
ℹ️ View Unchanged
|
A new build was pushed to Chromatic! 🚀undefined Chromatic results:
|
Update: I needed to look farther down under "Changed packages" |
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (e968f06) and published all packages with changesets to npm. You can install the packages in webapp by running: ./services/static/dev/tools/deploy_wonder_blocks.js --tag="PR2358" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2358 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great - thank you! This does feel like a minor change to me, agreed.
Summary:
When an
aria-label
is provided, there should be arole
applied to the element to give it meaning to browsers and screenreaders. This PR defaults therole
to"img"
inPhosphorIcon
when anaria-label
is provided.I'm not sure what our definitions are for "major", "minor", and "patch" releases. I would consider this a
minor
release since we are changing the behavior (even if it is slight), but it is backwards compatible sopatch
might be fine.Issue: WB-1795
Test plan: