Skip to content

Commit

Permalink
feat(MdDatepicker): remove fixed label position (#1417)
Browse files Browse the repository at this point in the history
* 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 a2cbc98
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 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}" />

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

0 comments on commit a2cbc98

Please sign in to comment.