Skip to content

Commit a2cbc98

Browse files
Samuell1marcosmoura
authored andcommitted
feat(MdDatepicker): remove fixed label position (#1417)
* feat(MdDatepicker): remove fixed label position * feat(MdDatepicker): add md-native class
1 parent 4d0f18a commit a2cbc98

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/MdDatepicker/MdDatepicker.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<md-field class="md-datepicker">
2+
<md-field :class="['md-datepicker', { 'md-native': !this.mdOverrideNative }]">
33
<md-date-icon class="md-date-icon" @click.native="toggleDialog" />
44
<md-input :type="type" ref="input" v-model="modelDate" @focus.native="onFocus" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}" />
55

@@ -127,9 +127,12 @@
127127
}
128128
129129
.md-datepicker {
130-
label {
131-
top: 0 !important;
130+
&.md-native {
131+
label {
132+
top: 0 !important;
133+
}
132134
}
135+
133136
.md-date-icon {
134137
cursor: pointer;
135138
}

0 commit comments

Comments
 (0)