-
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
WB-1645.pre: Append className value in Text component (fix) #2138
Conversation
🦋 Changeset detectedLatest commit: c3df0ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 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: +23 B (0%) Total Size: 91.2 kB
ℹ️ View Unchanged
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2138 +/- ##
=======================================
Coverage 97.05% 97.05%
=======================================
Files 242 242
Lines 28053 28058 +5
Branches 2456 2409 -47
=======================================
+ Hits 27227 27232 +5
Misses 826 826
Continue to review full report in Codecov by Sentry.
|
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (cb24a4c) 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="PR2138" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2138 |
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-dnmcmrmdjj.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, tricky! Thanks for the fix.
Summary:
While working on adding custom option items to Dropdowns, I noticed that the
className
prop was not being appended to theText
component. This PR fixesthat by changing the logic to append the
className
prop to theText
if itincludes both a
className
and astyle
prop.Also updated the typography docs to include an example of using the
style
andclassName
props.Issue: WB-1645
Test plan:
Verify that the unit tests pass.
Also verify that the following story works as expected:
http://localhost:6061/?path=/docs/typography--docs#with-style
style
).className
+css()
).className
+ and external css import).