Skip to content

Commit

Permalink
fix(VTextField): only show clear icon on hover or when focused
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Aug 10, 2022
1 parent f8ee680 commit 7a51ad0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/vuetify/src/components/VTextField/VTextField.sass
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@
&.v-input--has-state > .v-input__control > .v-input__slot:before
border-color: currentColor

.v-input__icon--clear
opacity: 0
transition: opacity $primary-transition

&.v-input--is-focused,
&.v-input--is-dirty:hover
.v-input__icon--clear
opacity: 1

// TODO: where are the corresponding rules for LTR?
//
// +rtl()
Expand Down

0 comments on commit 7a51ad0

Please sign in to comment.