Skip to content

Commit 06729ad

Browse files
committed
improvements
1 parent 9ff4a4f commit 06729ad

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/components/mdDatePicker/mdDatePicker.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ $month-small-width: 280px;
8484
}
8585

8686
.md-datepicker-header {
87-
width: 172px;
87+
width: 160px;
8888
padding: 16px;
8989

9090
@include layout-xsmall {

src/components/mdDatePicker/mdDatePicker.vue

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
<div class="md-datepicker-days">
4848
<span class="md-empty" v-for="day in startOfMonth(month).getDay()" v-once></span>
4949

50-
<button
51-
class="md-button md-icon-button"
50+
<md-button
51+
class="md-icon-button"
5252
v-for="day in getDaysInMonth(month)"
5353
:key="day"
5454
:class="{
@@ -57,16 +57,15 @@
5757
}"
5858
@click.native="setDate(day)"
5959
v-once>
60-
<md-ink-ripple />
6160
{{ day }}
62-
</button>
61+
</md-button>
6362
</div>
6463
</div>
6564
</transition-group>
6665
</div>
6766

6867
<div class="md-datepicker-years" v-show="currentView === 'year'">
69-
<button
68+
<md-button
7069
class="md-dense md-datepicker-year"
7170
v-for="year in visibleYears()"
7271
:key="year"
@@ -78,24 +77,22 @@
7877
'data-' + year
7978
]"
8079
@click.native="setYear(year)">
81-
<md-ink-ripple />
8280
{{ year }}
83-
</button>
81+
</md-button>
8482
</div>
8583

8684
<div class="md-datepicker-months" v-show="currentView === 'month'">
87-
<button
88-
class="md-button md-dense md-datepicker-month"
85+
<md-button
86+
class="md-dense md-datepicker-month"
8987
v-for="(month, index) in locale.months"
9088
:key="month"
9189
:class="{
9290
'md-primary': isThisMonth(index),
9391
'md-primary md-raised': isSelectedMonth(index),
9492
}"
9593
@click.native="setMonth(index)">
96-
<md-ink-ripple />
9794
{{ month }}
98-
</button>
95+
</md-button>
9996
</div>
10097

10198
<div class="md-datepicker-actions md-dialog-actions">

0 commit comments

Comments
 (0)