Skip to content

Commit

Permalink
fix(VFileInput): prevent label and placeholder overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
juddfranklin1 committed Jan 7, 2021
1 parent f6ea91b commit 4a829fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vuetify/src/components/VLabel/VLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default mixins(Themeable).extend({
type: String,
default: 'primary',
},
hasPlaceholder: Boolean,
disabled: Boolean,
focused: Boolean,
for: String,
Expand All @@ -43,7 +44,7 @@ export default mixins(Themeable).extend({
const data = {
staticClass: 'v-label',
class: {
'v-label--active': props.value,
'v-label--active': props.value || props.hasPlaceholder,
'v-label--is-disabled': props.disabled,
...functionalThemeClasses(ctx),
},
Expand Down
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VTextField/VTextField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ export default baseMixins.extend<options>().extend({
props: {
absolute: true,
color: this.validationState,
hasPlaceholder: !!this.placeholder,
dark: this.dark,
disabled: this.isDisabled,
focused: !this.isSingle && (this.isFocused || !!this.validationState),
Expand Down

0 comments on commit 4a829fc

Please sign in to comment.