Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework: Upgrade react-day-picker to 1.3.2 #5129

Merged
merged 4 commits into from
May 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions client/components/date-picker/index.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* External dependencies
*/
var React = require( 'react' ),
DayPicker = require( 'react-day-picker' ),
merge = require( 'lodash/merge' ),
noop = require( 'lodash/noop' );
import React from 'react';
import DayPicker from 'react-day-picker';
import merge from 'lodash/merge';
import noop from 'lodash/noop';

/**
* Internal dependencies
*/
var DayItem = require( 'components/date-picker/day' );
import DayItem from 'components/date-picker/day';

/* Internal dependencies
*/
Expand Down Expand Up @@ -121,7 +121,7 @@ module.exports = React.createClass( {

render: function() {
return (
<div className='date-picker_container' >
<div className="date-picker_container">
<DayPicker
ref="daypicker"
className="date-picker"
Expand Down
9 changes: 9 additions & 0 deletions client/components/date-picker/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ $date-picker_nav_button_size: 20px;
display: table-header-group;
}

.DayPicker-WeekdaysRow {
display: table-row;
}

.DayPicker-Weekday {
display: table-cell;
padding: 15px 0 10px;
Expand All @@ -160,6 +164,11 @@ $date-picker_nav_button_size: 20px;
font-weight: 600;
color: lighten( $gray, 20% );
text-transform: uppercase;

abbr {
border-bottom: none;
cursor: auto;
}
}

.DayPicker-Body {
Expand Down
Loading