Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VField): floating label respect paddings to avoid overflow #20736

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions packages/vuetify/src/components/VField/VField.sass
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@
--v-field-label-scale: #{$field-label-floating-scale}em
font-size: var(--v-field-label-scale)
visibility: hidden
max-width: 100%

.v-field--variant-outlined &
max-width: 100%

.v-field--center-affix &
transform: none
Expand Down Expand Up @@ -399,7 +401,13 @@
&__notch
flex: none
position: relative
max-width: calc(100% - var(--v-input-control-height))
max-width: calc(100% - $field-control-affixed-padding * 2)

@at-root
#{selector.append('.v-field--rounded', &)},
#{selector.append('[class^="rounded-"]', &)},
#{selector.append('[class*=" rounded-"]', &)}
johnleider marked this conversation as resolved.
Show resolved Hide resolved
max-width: calc(100% - var(--v-input-control-height))

&::before,
&::after
Expand Down