USWDS - Feature: Avoid or reduce specificity of :not() selector #5237
Labels
Context: Sass
Issue is in Sass
Needs: Refinement
We need to give this issue more detail
Type: Feature Request
New functionality
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
The text was updated successfully, but these errors were encountered: