Repository navigation
USWDS - Core: Deprecate font-smoothing mixins - #5250
Merged
Merged
Conversation
mejiaj
marked this pull request as ready for review
April 24, 2023 16:57
mahoneycm
approved these changes
Apr 26, 2023
mahoneycm
left a comment
Contributor
There was a problem hiding this comment.
No references of font smoothing outside of deprecated have been found & warnings work as expected 👍
amyleadem
approved these changes
Apr 26, 2023
amyleadem
left a comment
Contributor
There was a problem hiding this comment.
- Confirmed that informative warnings appear when knockout mixins are used
- Confirmed that all references to
no-knockout-font-smoothingandadd-knockout-font-smoothingmixins have been removed (outside of deprecated.scss) - Confirmed readability of affected type when font-smoothing is removed
- Note: there is a visual difference in OSX. I am no type expert and am not suggesting that this is necessarily a problem, I just wanted to flag the difference. Quick googling seems to suggest that the best display is the default browser display.
thisisdano
reviewed
May 8, 2023
Comment on lines
+30
to
+39
| $font-smoothing-warning: "Font smoothing was deprecated in USWDS 3.5.0. Please remove any references to it."; | ||
|
|
||
| // Deprecated in 3.5.0 | ||
| @mixin add-knockout-font-smoothing { | ||
| @warn $font-smoothing-warning; | ||
| } | ||
|
|
||
| @mixin no-knockout-font-smoothing { | ||
| @warn $font-smoothing-warning; | ||
| } |
Contributor
There was a problem hiding this comment.
Thanks for remembering this
23 of 24 tasks
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Font-smoothing is deprecated. Older technique, no longer applies, for improved font rendering on dark backgrounds.
Breaking change
This is not a breaking change.
Related issue
Closes #5180.
Related pull requests
Site changelog and style updates
Need to update documentation.Preview link
Preview link: Buttons
Problem statement
Solution
add-knockout-font-smoothing&no-knockout-font-smoothing) to_deprecated.scss@warn-Warning: Font smoothing was deprecated in USWDS 3.5.0. Please remove any references to it.Warning user receives
Components that used this feature:
@mixin button-disabled@mixin button-unstyledTesting and review
add-knockout-font-smoothing&no-knockout-font-smoothingin SASS (except in deprecated file).git pull origin [base branch]to pull in the most recent updates from your base and check for merge conflicts. (Often, the base branch isdevelop).npm run prettier:scssto format any Sass updates.