Skip to content

Conversation

amyleadem
Copy link
Contributor

@amyleadem amyleadem commented Dec 21, 2022

Summary

Fixed a compilation bug in the outline utility so that it can accept the '05' spacing token. Now, the .outline-05 utility class and u-outline('05') mixin should work as expected.

Breaking change

This is not a breaking change.

Related issue

Closes #5078

Problem statement

The outline utility was not able to read spacing-multiple(05), which resulted in a CSS error and improper display.

image

Solution

Adding @use "./functions/units/spacing-multiple" as *; to the top of _properties.scss gives the file what it needs to process the spacing-multiple() function.

Testing and review

To test, confirm that the following work as expected:

  • outline-05 utility class
  • u-outline('05') mixin
  • u-outline(0.5) mixin

@amyleadem amyleadem marked this pull request as ready for review December 21, 2022 23:59
@amyleadem amyleadem requested a review from mejiaj December 21, 2022 23:59
@amyleadem amyleadem requested a review from mahoneycm January 26, 2023 23:48
Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and straightforward fix, thank you!

@amyleadem amyleadem requested a review from thisisdano January 27, 2023 14:37
@thisisdano thisisdano merged commit e91a471 into develop Feb 28, 2023
@thisisdano thisisdano deleted the al-outline-fix branch February 28, 2023 19:16
@thisisdano thisisdano mentioned this pull request Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USWDS - Outline: Fix broken outline-05 utility
4 participants