Skip to content

Commit

Permalink
Merge pull request #206 from WordPress/update/tinymce-single/active-c…
Browse files Browse the repository at this point in the history
…lass

Change mce-active class to is-active.
  • Loading branch information
ellatrix committed Mar 8, 2017
2 parents 326d4d8 + b548fc4 commit a7f8964
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions shared/tinymce/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
} );

return this;
},
active: function( isActive ) {
this.$( this.getEl() ).toggleClass( 'is-active', isActive );
}
} );

Expand Down
2 changes: 1 addition & 1 deletion tinymce-single/tinymce/block.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
background-color: #f0f2f4;
}

.mce-inline-toolbar-grp .mce-btn.mce-active,
.mce-inline-toolbar-grp .mce-btn.is-active,
.mce-inline-toolbar-grp .mce-btn:active {
background-color: #e0e5e9;
}
Expand Down

0 comments on commit a7f8964

Please sign in to comment.