Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(default-theme): colors filters displaying (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Dziedzinski authored Apr 29, 2020
1 parent 5e16028 commit 6143f04
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<div class="filters">
<div v-for="filter in filters" :key="filter.name">
<SfHeading class="filters__title" :level="4" :title="filter.name" />
<div v-if="filter && filter.options && filter.options.length">
<div v-if="filter && filter.options && filter.options.length" :class="{'filters__filter--color': filter.name && filter.name === 'color'}">
<SfFilter
v-for="option in filter.options"
:key="option.value"
Expand All @@ -73,6 +73,7 @@
)
"
class="filters__item"
:class="{'filters__item--color': option.color}"
@change.native="
toggleFilter({
type: 'equals',
Expand Down Expand Up @@ -324,10 +325,17 @@ export default {
margin: 0 0 var(--spacer-base) 0;
}
}
&__filter {
&--color {
display: flex;
flex-wrap: wrap;
}
}
&__item {
padding: var(--spacer-2xs) 0;
&--color {
margin: 0 var(--spacer-xs);
width: auto;
margin: var(--spacer-xs) var(--spacer-xs) var(--spacer-xs) 0;
}
}
&__buttons {
Expand Down

1 comment on commit 6143f04

@vercel
Copy link

@vercel vercel bot commented on 6143f04 Apr 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.