-
Notifications
You must be signed in to change notification settings - Fork 12
Card | Include aria-describedby in DismissProps #2890
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: cd0fcce The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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: +21 B (+0.02%) Total Size: 109 kB
ℹ️ View Unchanged
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2890 +/- ##
============================
============================
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-lpejauhcya.chromatic.com/ Chromatic results:
|
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (dbaf4a8) and published all packages with changesets to npm. You can install the packages in ./dev/tools/deploy_wonder_blocks.js --tag="PR2890"Packages can also be installed manually by running: pnpm add @khanacademy/wonder-blocks-<package-name>@PR2890 |
jandrade
left a comment
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.
Changes look great! Just leaving a couple of suggestions especially to provide more a11y docs before landing. Thanks for adding this! 🚢
packages/wonder-blocks-card/src/__tests__/components/card.test.tsx
Outdated
Show resolved
Hide resolved
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.
suggestion: This looks great!. Just adding a separate suggestion as the related file is not modified in this PR:
Could you please add some minimal instructions to explain how/when to use this new prop here?
This is the source file:
| ## Dismiss Button |
0cb8622 to
b4c069e
Compare
…by attribute of the Dismiss button
6a37d2f to
cd0fcce
Compare
Summary:
This PR exposes aria-describedby on the Card component's DismissButton. This will allow for adding additional context for screen reader use cases without making the button's aria label too long.
Issue: WB-2173
Test plan:
Screenshot showing that the dismiss button's description can be set to the body text of the Card Component:
