Skip to content

Commit

Permalink
feat(renderless-filter): fix the css classes
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Jul 25, 2024
1 parent 790b494 commit 0265afd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<SimpleFilter
:filter="filter"
:cssClasses="innerCssClasses"
class="this-is-not-inherited-in-vue3-use-cssClasses-prop-instead"
data-custom="this-is-not-inherited-in-vue3"
class="this-is-not-inherited-in-vue3-and-will-throw-a-warning--use-cssClasses-prop-instead"
data-custom="this-is-not-inherited-in-vue3-and-will-throw-a-warning"
/>
</div>
<div>
Expand Down
10 changes: 3 additions & 7 deletions packages/x-components/src/views/home/aside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ClearFilters />
<SelectedFiltersList>
<template #default="{ filter }">
<SimpleFilter :filter="filter" class="x-facet-filter-success">
<SimpleFilter :filter="filter" :cssClasses="['x-facet-filter-success']">
<template #label>{{ filter.label ?? filter.id }}</template>
</SimpleFilter>
</template>
Expand Down Expand Up @@ -67,7 +67,7 @@
</span>
</SelectedFilters>
<FiltersList v-slot="{ filter }">
<SimpleFilter #label :filter="filter" :data-test="`${facet.label}-filter`">
<SimpleFilter #label :filter="filter">
<BasePriceFilterLabel
v-if="facet.id === 'price'"
:filter="filter"
Expand Down Expand Up @@ -107,11 +107,7 @@
filter
}"
>
<SimpleFilter
#label="{ filter }"
:filter="filter"
:data-test="`${facet.label}-filter`"
>
<SimpleFilter #label="{ filter }" :filter="filter">
{{ filter.label }}
<span :data-test="`${facet.label}-filter-total-results`">
{{ filter.totalResults }}
Expand Down

0 comments on commit 0265afd

Please sign in to comment.