Skip to content

Commit

Permalink
Make the publish button always blue (primary), even in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
DanReyLop committed May 23, 2016
1 parent ae7c1a8 commit ea7ba8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 0 additions & 2 deletions client/post-editor/editor-ground-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
}

.editor-ground-control .editor-publish-button {
@extend .is-primary;

border-radius: 4px 0 0 4px;
flex-grow: 1;

Expand Down
8 changes: 5 additions & 3 deletions client/post-editor/editor-publish-button/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import localize from 'lib/mixins/i18n/localize';
import stats from 'lib/posts/stats';
import postUtils from 'lib/posts/utils';
import siteUtils from 'lib/site/utils';
import Button from 'components/button';

export const EditorPublishButton = React.createClass( {
propTypes: {
Expand Down Expand Up @@ -111,14 +112,15 @@ export const EditorPublishButton = React.createClass( {

render: function() {
return (
<button
className="editor-publish-button button"
<Button
className="editor-publish-button"
primary={ true }
onClick={ this.onClick }
disabled={ ! this.isEnabled() }
tabIndex={ this.props.tabIndex }
>
{ this.getButtonLabel() }
</button>
</Button>
);
}
} );
Expand Down
1 change: 1 addition & 0 deletions client/post-editor/test/post-editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe( 'PostEditor', function() {
mockery.registerMock( 'post-editor/editor-title/container', MOCK_COMPONENT );
mockery.registerMock( 'post-editor/editor-page-slug', MOCK_COMPONENT );
mockery.registerMock( 'post-editor/editor-media-advanced', MOCK_COMPONENT );
mockery.registerMock( 'post-editor/editor-mobile-navigation', MOCK_COMPONENT );
mockery.registerMock( 'post-editor/editor-author', MOCK_COMPONENT );
mockery.registerMock( 'post-editor/editor-visibility', MOCK_COMPONENT );
mockery.registerMock( 'post-editor/editor-word-count', MOCK_COMPONENT );
Expand Down

0 comments on commit ea7ba8d

Please sign in to comment.