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

USWDS - Feature: SASS/CSS Documentation Update #3034

Open
2 tasks done
hammad-awan opened this issue Nov 25, 2024 · 0 comments
Open
2 tasks done

USWDS - Feature: SASS/CSS Documentation Update #3034

hammad-awan opened this issue Nov 25, 2024 · 0 comments
Labels
Context: Sass Issue is in Sass Status: Triage We're triaging this issue and grooming if necessary Type: Feature Request New functionality

Comments

@hammad-awan
Copy link

hammad-awan commented Nov 25, 2024

Is your feature request related to a problem? Please describe.

I'm trying to use the uswds styles in an angular project and I am having problems getting it to work correctly using the css @layer keyword. I am able to wrap it in a layer, but the layer precedence does not take affect correctly. If I specify the following in the styles.scss file:

@forward "uswds-theme";

@layer uswds, layer2, layer3;

The layer precedence should be in reverse order, i.e., layer3, layer2, then uswds styles should apply that order.

However, because of the forward which needs to appear first in styles.scss which wraps uswds styles in the uswds layer the latter is seen as the highest precedence.

Describe the solution you'd like

Provide documentation on how to do this.

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

@hammad-awan hammad-awan added the Type: Feature Request New functionality label Nov 25, 2024
@github-actions github-actions bot added the Status: Triage We're triaging this issue and grooming if necessary label Nov 25, 2024
@mejiaj mejiaj added Context: Sass Issue is in Sass and removed Status: Triage We're triaging this issue and grooming if necessary labels Dec 26, 2024
@mejiaj mejiaj transferred this issue from uswds/uswds Dec 26, 2024
@github-actions github-actions bot added the Status: Triage We're triaging this issue and grooming if necessary label Dec 26, 2024
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 Status: Triage We're triaging this issue and grooming if necessary Type: Feature Request New functionality
Projects
Status: Voting Open
Development

No branches or pull requests

2 participants