CSS-Library: update non-breaking space to full 4-digit unicode#1989
Merged
CSS-Library: update non-breaking space to full 4-digit unicode#1989
Conversation
jamigibbs
commented
Feb 12, 2026
| &::before { | ||
| background: $color-link-default-hover; | ||
| content: "\00A0"; | ||
| content: "\00a0"; |
Contributor
Author
There was a problem hiding this comment.
note: This one was already using the longhand version but I'm updating to lowercase for consistency.
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.
Chromatic
https://5350-char-encoding-css-library--65a6e2ed2314f7b8f98609d8.chromatic.com
Description
This is going to update non-breaking space unicode values from the shorthand version to the longhand version to try and remediate a seemingly random issue where Sass compiles
content: '\a0'to actual UTF-8 bytes0xC2 0xA0in the CSS output.When that happens, it inserts an unexpected character like this:
Functionally, nothing should change. Both
\a0and\00a0represent the exact same character: a non-breaking space (Unicode U+00A0). The only difference is explicitness so that when the CSS compiles, it knows to only use a non-breaking space and not a visible character.Related tickets and links
related department-of-veterans-affairs/vets-design-system-documentation#5350
Testing and review
What I'm doing to confirm that nothing stylistically has changed is that the compiled stylesheets in
disthave not changed after runningyarn build.Approvals
See the QA Checklists section below for suggested approvals. Use your best judgment if additional reviews are needed. When in doubt, request a review.
Approval groups
Add approval groups to the PR as needed:
QA checklists
Use the QA checklists below as guides, not rules. Not all checklists will apply to every PR but there could be some overlap.
In all scenarios, changes should be fully tested by the author and verified by the reviewer(s); functionality, responsiveness, etc.
✨ New Component Added
minorlabel🌱 New Component Variation Added
minorlabel🐞 Component Fix
patchlabel♿️ Component Fix - Accessibility
patchlabel🚨 Component Fix - Breaking API Change
majorlabel🔧 Component Update - Non-Breaking API Change
minorlabel📖 Storybook Update
ignore-for-releaselabel🎨 CSS-Library Update
css-librarylabel