Skip to content

Commit 80e0935

Browse files
committed
fix(card): use primary when filter is active
Signed-off-by: Fitrah Munir <fitrahmunir@outlook.com>
1 parent ebdbe65 commit 80e0935

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/components/Controls.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<NcButton slot="trigger"
9191
:title="t('deck', 'Apply filter')"
9292
class="filter-button"
93-
type="tertiary-no-background">
93+
:type="isFilterActive ? 'primary' : 'tertiary'">
9494
<template #icon>
9595
<FilterIcon v-if="isFilterActive" :size="20" decorative />
9696
<FilterOffIcon v-else :size="20" decorative />
@@ -509,8 +509,11 @@ export default {
509509
width: 44px;
510510
height: 44px;
511511
512-
&:hover, &:focus {
513-
background-color: rgba(127,127,127,0.25) !important;
512+
&[data-popper-shown] {
513+
background-color: var(--color-background-hover);
514+
&.button-vue--vue-primary {
515+
background-color: var(--color-primary-element);
516+
}
514517
}
515518
}
516519
</style>

0 commit comments

Comments
 (0)