-
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
[🔥AUDIT🔥] WB-1645.fix Dropdown: Fix regression in SingleSelect #2146
Conversation
🦋 Changeset detectedLatest commit: 53c4f69 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2146 +/- ##
=======================================
Coverage 97.06% 97.06%
=======================================
Files 244 244
Lines 28256 28256
Branches 2461 2421 -40
=======================================
Hits 27428 27428
Misses 828 828
Continue to review full report in Codecov by Sentry.
|
Size Change: -6 B (0%) Total Size: 91.6 kB
ℹ️ View Unchanged
|
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (7c94d52) 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="PR2146" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2146 |
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-tdlfyvvctz.chromatic.com/ Chromatic results:
|
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 - good call!
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.
Thank-you for the quick fix!
🖍 This is an audit! 🖍
Summary:
Fixes a regression in
SingleSelect
where the opener is not able to use anempty string as a label.
In #2139, I changed the logic to use
1 item
for those cases, but turns outthat this "empty" value feature is required by Perseus.
Issue: WB-1645
Test plan:
Verify that the "Two with Text" example in the
SingleSelect
storybook pageshows empty string as the label for both openers:
http://localhost:6061/?path=/story/dropdown-singleselect--two-with-text