We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
data-selected='true'
1 parent 7c91a3e commit fbc6f97Copy full SHA for fbc6f97
.changeset/strong-lemons-rescue.md
@@ -0,0 +1,5 @@
1
+---
2
+"@primer/react": patch
3
4
+
5
+SubNav: Update selected styles to only apply to `data-selected='true'`
packages/react/src/SubNav/SubNav.module.css
@@ -60,7 +60,7 @@
60
transition: background-color 0.2s ease;
61
}
62
63
- &:is([data-selected]) {
+ &:is([data-selected='true']) {
64
color: var(--fgColor-onEmphasis);
65
background-color: var(--bgColor-accent-emphasis);
66
/* stylelint-disable-next-line primer/colors */
0 commit comments