USWDS - [usa-icon-list] Add support for $theme-body-font-size to be 2xs #5356
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
Allow
$theme-body-font-sizeto be set to2xsin uswds-theme.Breaking change
This is not a breaking change.
Related issue
Closes #5357
Problem statement
Summarize the problem this PR solves in a clear and concise statement.
Setting
$theme-body-font-sizeto'2xs'unexpectedly throws an error, blocking the page render.Solution
Provide a summary of the solution this PR offers.
This PR:
'2xs': $theme-type-scale-2xsto the list of available font-sizesThere may be a more robust way to grab all the possible type-scale theme variables instead of manually updating them by key here. I am also unclear whether there was a conscious decision to support a limited set of sizes.
In our use case, the
$theme-type-scale-2xsis set to token6which is roughly17px.Testing and review
Share recommended methods for reviewing this change.
In
_uswds-theme.scss:Error message is resolved and page loads.