Skip to content

Commit a5a0afe

Browse files
authored
Add basic link styles to BaseStyles (#6314)
1 parent db0b27a commit a5a0afe

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.changeset/tidy-drinks-speak.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
Add basic link styles to BaseStyles.

packages/react/src/BaseStyles.module.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,14 @@ details-dialog:focus:not(:focus-visible):not(:global(.focus-visible)) {
7373
color-scheme: dark;
7474
}
7575
}
76+
77+
/* Low-specificity default link styling */
78+
:where(a:not([class*='prc-']):not([class*='PRC-']):not([class*='Primer_Brand__'])) {
79+
color: var(--fgColor-accent, var(--color-accent-fg));
80+
text-decoration: none;
81+
82+
&:hover {
83+
text-decoration: underline;
84+
}
85+
}
7686
}

0 commit comments

Comments
 (0)