-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(fonts): unquote unicode-range and font-display values #19511
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(fonts): unquote unicode-range and font-display values #19511
Conversation
e3a7fb0
to
1f7704c
Compare
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #19511 +/- ##
=======================================
Coverage 84.48% 84.48%
=======================================
Files 373 373
Lines 14641 14641
Branches 4839 4843 +4
=======================================
Hits 12369 12369
Misses 2124 2124
Partials 148 148 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@Gururajj77 The purpose of this fix is to remove quotes from |
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.
$items: map.get($ranges, $name); | ||
$count: list.length($items); | ||
$result: ''; | ||
|
||
@for $i from 1 through $count { | ||
$result: if($i == 1, '', $result + ', ') + list.nth($items, $i); | ||
} | ||
|
||
@return string.unquote($result); |
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.
Did you consider modifying the $ranges
map above to contain unquoted strings instead of quoted strings? What you have here is fine, just curious if there's a tradeoff or blocker that pushed you in this direction. The sass docs mention CSS property values being a good time to use unquoted strings.
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.
@tay1orjones That was the first thing that I tried but it didn't seem to work, must've messed up on my side. I opened #19588 to revert this.
348d58f
…ign-system#19511) * fix(fonts): unquote unicode-range and font-display values Fixes carbon-design-system#19298 Fixes carbon-design-system#19324 * chore: added myself as a contributor
Closes #19298
Closes #19324
Changelog
Changed
unicode-range
andfont-display
values are now without quotesTesting / Reviewing
unicode-range
andfont-display
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
[ ] Updated documentation and storybook examples[ ] Wrote passing tests that cover this change[ ] Addressed any impact on accessibility (a11y)More details can be found in the pull request guide