Skip to content

Commit

Permalink
Improved the Date picker button in mobile so it shows the selected date
Browse files Browse the repository at this point in the history
  • Loading branch information
DanReyLop committed Apr 5, 2016
1 parent 696ff66 commit b6f2e31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/post-editor/editor-ground-control/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ const EditorGroundControl = React.createClass( {
: <Gridicon icon="calendar" size={ 18 } />
}
<span className="editor-ground-control__time-button__label">
{ this.translate( 'Schedule' ) }
{ postUtils.isFutureDated( this.props.post )
? this.moment( this.props.post.date ).calendar()
: this.translate( 'Choose date' )
}
</span>
</button>
}
Expand Down
2 changes: 2 additions & 0 deletions client/post-editor/editor-ground-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
}

.editor-ground-control__time-button__label {
padding-left: 8px;

@include breakpoint( ">660px" ) {
display: none;
}
Expand Down

0 comments on commit b6f2e31

Please sign in to comment.