-
Notifications
You must be signed in to change notification settings - Fork 30
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(react/theme): correct the check for empty cssVariables
to avoid logical errors
#953
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
🦋 Changeset detectedLatest commit: d0dc04b 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 |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Tonic UI DemoOn 2024-12-05 06:23:54 +0000, PR #953 (d0dc04b) was successfully deployed. You can view it at the following link: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2 #953 +/- ##
==========================================
- Coverage 78.45% 78.44% -0.02%
==========================================
Files 406 406
Lines 6693 6693
==========================================
- Hits 5251 5250 -1
- Misses 1442 1443 +1 ☔ View full report in Codecov by Sentry. |
PR Type
Bug fix
Description
CSSVariables
component by correcting the condition to check for emptycssVariables
.Object.keys(cssVariables)
is used to determine ifcssVariables
is empty.Changes walkthrough 📝
CSSVariables.js
Fix logical error in `cssVariables` emptiness check
packages/react/src/theme/CSSVariables.js
cssVariables
.Object.keys(cssVariables) === 0
toObject.keys(cssVariables).length === 0
.