Skip to content
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

Sass error: 'neg-4' is not a valid USWDS margin-horizontal token #4142

Closed
maya opened this issue Apr 1, 2021 · 1 comment
Closed

Sass error: 'neg-4' is not a valid USWDS margin-horizontal token #4142

maya opened this issue Apr 1, 2021 · 1 comment
Labels
Context: Sass Issue is in Sass Type: Bug A problem in the code

Comments

@maya
Copy link
Contributor

maya commented Apr 1, 2021

Sass:
@include u-margin-x("neg-4");

    messageOriginal: "'neg-4' is not a valid USWDS margin-horizontal token. Valid tokens: 1px, 2px, 05, 1, 105, 2, 205, 3, neg-1px, neg-2px, neg-05, neg-1, neg-105, neg-2, neg-205, neg-3, 4, 5, 6, 7, 8, 9, 10, 15, card, card-lg, mobile, 05em, 1em, 105em, 2em, 0, auto"
   ╷
57 │     @return uswds-error(
   │ ┌───────────^
58 │ │     "'#{$token}' is not a valid USWDS #{$type} token.#{$valid-token-message}"
59 │ │   );
   │ └───^

Docs site says I should be able to use them: https://designsystem.digital.gov/design-tokens/spacing-units/

@mejiaj
Copy link
Contributor

mejiaj commented Jun 15, 2021

Closing this since #4212 got merged.

@mejiaj mejiaj closed this as completed Jun 15, 2021
@mejiaj mejiaj removed this from Bugs and ongoing work in USWDS Roadmap Backlog Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Context: Sass Issue is in Sass Type: Bug A problem in the code
Projects
None yet
Development

No branches or pull requests

2 participants