-
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
fix(LEMS-2086): Add aria label to Popover Content #2263
Conversation
🦋 Changeset detectedLatest commit: c4db32e 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: +6 B (+0.01%) Total Size: 97.1 kB
ℹ️ View Unchanged
|
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-homvxqunmu.chromatic.com/ Chromatic results:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2263 +/- ##
==========================================
+ Coverage 93.91% 95.76% +1.85%
==========================================
Files 248 248
Lines 29514 29516 +2
Branches 2407 1847 -560
==========================================
+ Hits 27717 28267 +550
+ Misses 1793 1236 -557
- Partials 4 13 +9
... and 46 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (f5c3293) 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="PR2263" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2263 |
Could you add a unit test that ensures the ariaLabel is set when passed in? |
@@ -70,6 +70,7 @@ export default class PopoverContentCore extends React.Component<Props> { | |||
|
|||
render(): React.ReactNode { | |||
const { | |||
"aria-label": ariaLabel, |
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.
Oh interesting, so the ariaLabel prop is exposed, but the value is not piped through to View component??
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.
Yup it accepts all the aria-*
labels by default, but we have to expose them individually @catandthemachines
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.
Ahh - sounds good, thanks!
packages/wonder-blocks-popover/src/components/__tests__/popover.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.
Oh yes, good idea, thank you
packages/wonder-blocks-popover/src/components/__tests__/popover.test.tsx
Outdated
Show resolved
Hide resolved
…r.test.tsx Co-authored-by: John Resig <[email protected]>
Summary:
Aria-labels are not being added to the
View
component, causing accessibility issues.This PR adds aria-label to
View
Issue: LEMS-2089
Test plan: