Skip to content

Commit

Permalink
Change the week header and left button style to meet the date spacing (
Browse files Browse the repository at this point in the history
…#27730)

* Change the week header and left button style to meet the dates spacing.

* Add RTL ignore for month button

* Add rtl begin and end ignore.
  • Loading branch information
hsingyuc authored Jan 7, 2021
1 parent cf31360 commit c3ff86d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions packages/components/src/date-time/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@
}
.CalendarMonthGrid__horizontal {
position: absolute;
left: 9px;
left: 0;
}
.CalendarMonthGrid__vertical {
margin: 0 auto;
Expand Down Expand Up @@ -573,14 +573,15 @@
position: relative;
}
.DayPicker_weekHeaders__horizontal {
margin-left: 9px;
margin-left: 13px;
}
.DayPicker_weekHeader {
color: #757575;
position: absolute;
top: 62px;
z-index: 2;
text-align: left;
padding: 0 !important;
}
.DayPicker_weekHeader__vertical {
left: 50%;
Expand All @@ -605,6 +606,7 @@
.DayPicker_weekHeader_li {
display: inline-block;
text-align: center;
margin: 0 1px;
}
.DayPicker_transitionContainer {
position: relative;
Expand Down
6 changes: 4 additions & 2 deletions packages/components/src/date-time/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@

// Override external DatePicker styles.
.DayPickerNavigation_leftButton__horizontalDefault {
left: 0;
/*!rtl:begin:ignore*/
left: 13px;
/*!rtl:end:ignore*/
}

.CalendarMonth_caption {
Expand Down Expand Up @@ -98,7 +100,7 @@
.DayPicker_weekHeader {
top: 50px;
.DayPicker_weekHeader_ul {
margin: 1px 0;
margin: 1px;
padding-left: 0;
padding-right: 0;
}
Expand Down

0 comments on commit c3ff86d

Please sign in to comment.