Too strong selectors
See original GitHub issueThe following selector Is a notch too strong (0, 2, 1) and overrides normal class names:
It could be
a[name]:not([href]):not([tabindex]): {
color: inherit;
text-decoration: none;
@include hover-focus {
color: inherit;
text-decoration: none;
}
&:focus {
outline: 0;
}
}
Note: Updated snippet to better reflect the purpose of the styling i.e. named anchors. Original selector was a:not([href]):not([tabindex]):not([class])
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (13 by maintainers)
Top Results From Across the Web
6 powerful CSS selectors that will really help you write clean ...
6 powerful CSS selectors that will really help you write clean CSS. · 1. div > a. This selector will enable us to...
Read more >Specificity - CSS: Cascading Style Sheets - MDN Web Docs
The specificity algorithm calculates the weight of a CSS selector to determine which rule from competing CSS declarations gets applied to an ...
Read more >Advanced Selectors - LearnHowToProgram.com
Selector Stacking ; <a> and ; <strong> tags will be colored red. Stacking selectors helps keep stylesheets DRY by applying similar styles to...
Read more >7 Tips to build better selector in Microsoft Power Automate ...
Building strong selectors in power automate desktop is important for having flows that work properly and that do not break.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Same issue as @bmaehr Can confirm that
a:not([href]):not([tabindex])is basically too strong, that it overrides a class selector. Any good workaround??I have the same issue as @bmaehr . “a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover” selector is too strong and overrides our app styles.