This commit is contained in:
Yangsen AN 2026-01-30 23:44:29 +08:00 committed by GitHub
commit 21c708d5c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -344,6 +344,15 @@
color: var(--text);
}
/* Active state for icon buttons in light mode without this override the
white .btn--icon background (specificity) masks the generic .btn.active
orange tint, making on/off states visually identical. See #2832. */
:root[data-theme="light"] .btn--icon.active {
background: rgba(245, 159, 74, 0.18);
border-color: rgba(245, 159, 74, 0.5);
color: rgba(16, 24, 40, 0.9);
}
.btn--icon svg {
display: block;
width: 18px;

View File

@ -510,6 +510,11 @@
border-color: var(--accent);
}
:root[data-theme="light"] .btn.active {
background: rgba(245, 159, 74, 0.14);
border-color: rgba(245, 159, 74, 0.45);
}
/* ===========================================
Utilities
=========================================== */