Skip to content

Commit

Permalink
Restore the row for the weekdays header (fix #82)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Nov 11, 2015
1 parent d3903bb commit e98a922
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/DayPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ export default class DayPicker extends Component {
{ localeUtils.formatMonthTitle(d, locale) }
</div>
<div className="DayPicker-Weekdays">
{ this.renderWeekDays() }
<div className="DayPicker-WeekdaysRow">
{ this.renderWeekDays() }
</div>
</div>
<div className="DayPicker-Body">
{ this.renderWeeksInMonth(d) }
Expand Down
19 changes: 10 additions & 9 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,20 @@

.DayPicker-Weekdays {
display: table-header-group;
> div {
display: table-row;
}
}

.DayPicker-Weekday {
display: table-cell;
padding: .5rem;
font-size: .875em;
text-align: center;
color: #8b9898;
.DayPicker-WeekdaysRow {
display: table-row;
}

.DayPicker-Weekday {
display: table-cell;
padding: .5rem;
font-size: .875em;
text-align: center;
color: #8b9898;
}

.DayPicker-Body {
display: table-row-group;
}
Expand Down

0 comments on commit e98a922

Please sign in to comment.