Skip to content

Commit

Permalink
fix(vue3): adjust classes use by hide-non-error-details
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Aug 18, 2023
1 parent 9ad2fcf commit 3f72ea6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/coalesce-vue-vuetify3/src/shared.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.hide-non-error-details {
.v-input {
.v-text-field__details,
.v-input__details,
.v-messages,
.v-messages__wrapper,
&.v-input--switch .v-input__slot,
&.v-input--checkbox .v-input__slot {
transition: min-height 0.3s cubic-bezier(0.25, 0.8, 0.5, 1),
Expand All @@ -13,18 +12,18 @@
.v-input {
// Make the messages area have a margin and min height when not empty.
// Otherwise, collapse it when empty. Min-height is important for smooth animation here.
.v-messages__wrapper {
.v-messages {
margin-bottom: 0;
min-height: 0;
}
.v-messages__wrapper:not(:empty) {
.v-messages:not(:empty) {
margin-bottom: 12px;
min-height: 12px;
}

// Vuetify normally applies the message area height styling to the
// parts different than the messages__wrapper. Remove this.
.v-text-field__details {
.v-input__details {
min-height: 0 !important;
margin-bottom: 0 !important;

Expand Down

0 comments on commit 3f72ea6

Please sign in to comment.