fix(button): remove color override on anchor buttons
`a.btn` had `color: inherit` which overrode variant-specific colors (e.g. `--fg-on-accent` on `.btn-primary`) due to higher specificity (element+class > class). This caused black text on primary link buttons in light mode. Let variant classes control text color instead.
This commit is contained in:
@@ -61,11 +61,9 @@
|
|||||||
/* Link buttons rendered as <a> need reset styles */
|
/* Link buttons rendered as <a> need reset styles */
|
||||||
a.btn {
|
a.btn {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
|
||||||
}
|
}
|
||||||
a.btn-link {
|
a.btn-link {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
color: var(--accent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-sm {
|
.btn-sm {
|
||||||
|
|||||||
Reference in New Issue
Block a user