Skip to content

Commit

Permalink
fix(Autocomplete): fix the styling for the clear button
Browse files Browse the repository at this point in the history
  • Loading branch information
lukicenturi authored and kelsos committed Dec 13, 2024
1 parent 914b976 commit 14d7267
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/components/forms/auto-complete/RuiAutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -653,18 +653,23 @@ defineExpose({
/>
</div>

<span
<RuiButton
v-if="clearable && valueSet && !disabled"
variant="text"
icon
size="sm"
color="error"
class="group-hover:!visible"
:class="[$style.clear, anyFocused && '!visible']"
:class="[$style.clear, anyFocused && '!visible', {
'mr-2': !dense,
}]"
@click.stop.prevent="clear()"
>
<RuiIcon
color="error"
name="lu-x"
size="18"
/>
</span>
</RuiButton>

<span
:class="$style.icon__wrapper"
Expand Down

0 comments on commit 14d7267

Please sign in to comment.