Skip to content

Commit c644550

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

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/components/Controls.vue

Lines changed: 9 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,14 @@ 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: rgb(245, 245, 245);
514+
[data-themes=dark] & {
515+
background-color: #212121;
516+
}
517+
&.button-vue--vue-primary {
518+
background-color: var(--color-primary-element);
519+
}
514520
}
515521
}
516522
</style>

0 commit comments

Comments
 (0)