Skip to content

Commit

Permalink
fix: fix problem with styles
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadlgdo committed Jun 26, 2024
1 parent 16f5b88 commit 7994375
Showing 1 changed file with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<RenderlessFilter
v-slot="{ filter, clickFilter, cssClasses, isDisabled }"
:class="cssClasses"
:clickEvents="clickEventsToEmit"
:filter="filter"
class="x-simple-filter"
>
<!--
<div :class="cssClasses" class="x-simple-filter">
<RenderlessFilter
v-slot="{ filter, clickFilter, cssClasses, isDisabled }"
:class="cssClasses"
:clickEvents="clickEventsToEmit"
:filter="filter"
>
<!--
@slot The control element to render
@binding {Filter} filter - The filter data
@binding {() => void} clickFilter - Method that will invoke the needed actions after the user
Expand All @@ -15,30 +15,31 @@
@binding {Boolean} isDisabled - True if the filter shouldn't be able to be selected by the
user
-->
<slot
v-bind="{
filter,
clickFilter,
cssClasses,
isDisabled
}"
>
<button
@click="clickFilter"
:aria-checked="filter.selected.toString()"
:class="cssClasses"
:disabled="isDisabled"
data-test="filter"
role="checkbox"
<slot
v-bind="{
filter,
clickFilter,
cssClasses,
isDisabled
}"
>
<!--
<button
@click="clickFilter"
:aria-checked="filter.selected.toString()"
:class="cssClasses"
:disabled="isDisabled"
data-test="filter"
role="checkbox"
>
<!--
@slot The content to render inside the button
@binding {Filter} filter - The filter data
-->
<slot :filter="filter" name="label">{{ filter.label }}</slot>
</button>
</slot>
</RenderlessFilter>
<slot :filter="filter" name="label">{{ filter.label }}</slot>
</button>
</slot>
</RenderlessFilter>
</div>
</template>

<script lang="ts">
Expand Down

0 comments on commit 7994375

Please sign in to comment.