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: Avoid or reduce specificity of :not() selector #5237

Open
2 tasks done
mejiaj opened this issue Apr 14, 2023 · 0 comments
Open
2 tasks done

USWDS - Feature: Avoid or reduce specificity of :not() selector #5237

mejiaj opened this issue Apr 14, 2023 · 0 comments
Assignees
Labels
Context: Sass Issue is in Sass Needs: Refinement We need to give this issue more detail Type: Feature Request New functionality

Comments

@mejiaj
Copy link
Contributor

mejiaj commented Apr 14, 2023

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

:not() has a high specificity and using it makes styles difficult to override.

Describe the solution you'd like

Find an alternative method or reduce specificity.

Describe alternatives you've considered

No response

Additional context

https://github.com/uswds/uswds/blob/develop/packages/uswds-core/src/styles/mixins/general/nav-list.scss#L34

Slack user had difficulty overriding nav item on hover:
https://gsa-tts.slack.com/archives/C3F14AHSQ/p1681405928637449

Code of Conduct

@mejiaj mejiaj added Type: Feature Request New functionality Status: Triage We're triaging this issue and grooming if necessary Context: Sass Issue is in Sass labels Apr 14, 2023
@amyleadem amyleadem added Needs: Refinement We need to give this issue more detail and removed Status: Triage We're triaging this issue and grooming if necessary labels Aug 10, 2023
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 Needs: Refinement We need to give this issue more detail Type: Feature Request New functionality
Projects
Status: Needs refinement
Development

No branches or pull requests

2 participants