Skip to content

Commit

Permalink
Dark mode: dimmed buttons bright on hover/current
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Dec 10, 2024
1 parent 281dd6e commit 003c33a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions panel/src/components/Navigation/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ export default {
--button-rounded: var(--spacing-1);
--button-text-display: block;
--button-icon-display: block;
--button-filled-color-back: light-dark(var(--color-gray-300), var(--color-gray-950));
--button-filled-color-back: light-dark(
var(--color-gray-300),
var(--color-gray-950)
);
}
.k-button {
Expand Down Expand Up @@ -294,7 +297,7 @@ export default {
[aria-current="true"]
)
.k-button-text {
filter: brightness(75%);
filter: light-dark(brightness(75%), brightness(125%));
}
.k-button:where([data-variant="dimmed"][data-theme]) {
--button-color-icon: var(--theme-color-icon);
Expand Down

0 comments on commit 003c33a

Please sign in to comment.