Skip to content
Permalink
Browse files

feat(MdDatepicker): remove fixed label position (#1417)

* feat(MdDatepicker): remove fixed label position

* feat(MdDatepicker): add md-native class
  • Loading branch information...
Samuell1 authored and marcosmoura committed Jan 23, 2018
1 parent 4d0f18a commit a2cbc980f5283575913cdec21e88661c538fa50c
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/components/MdDatepicker/MdDatepicker.vue
@@ -1,5 +1,5 @@
<template>
<md-field class="md-datepicker">
<md-field :class="['md-datepicker', { 'md-native': !this.mdOverrideNative }]">
<md-date-icon class="md-date-icon" @click.native="toggleDialog" />
<md-input :type="type" ref="input" v-model="modelDate" @focus.native="onFocus" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}" />

@@ -127,9 +127,12 @@
}
.md-datepicker {
label {
top: 0 !important;
&.md-native {
label {
top: 0 !important;
}
}
.md-date-icon {
cursor: pointer;
}

0 comments on commit a2cbc98

Please sign in to comment.
You can’t perform that action at this time.