Skip to content

USWDS - Bug: theme-site-margin-width unit won't compile #5559

@arkjoseph

Description

@arkjoseph

Describe the bug

According to Units docs, a value of 6 can be expected while compiling
https://designsystem.digital.gov/design-tokens/spacing-units/#spacing-unit-tokens-2

The value of 6 for
$theme-site-margins-width is being rejected

My entry point

@forward "uswds-theme"; @forward "uswds-theme-custom-styles"; @forward "uswds-global";

Steps to reproduce the bug

  1. go into _uswds-theme.scss

@use "uswds-core" with ($theme-site-margins-width: 6)

results in
Error: "12is not a validpaddingtoken. You should correct this. Standardpaddingtokens: 1px, 2px, 05, 1, 105, 2, 205, 3, 4, 5, 6, 7, 8, 9, 10, 15, 0"╷ 19 │ padding-left: get-uswds-value("padding", $value...) #{$important}; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expected Behavior

3.0.2 of framework accepted the unit as 6 (48px or 3rem)
This is the continued expected behavior of the unit of 6 for $theme-site-margin-width

Related code

No response

Screenshots

Screenshot 2023-10-12 at 12 31 26 PM

System setup

  • 3.6.1
  • GULP Compile method

Additional context

Current 3.0.1 uswds site-margin-width was 6 / 3rem. Grid container

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions