Skip to content

Commit

Permalink
fix #651
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed May 9, 2016
1 parent 8780917 commit 242c276
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions assets/snow/toolbar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ colorItemsPerRow = 7
.ql-fill, .ql-stroke.ql-fill
fill: inactiveColor

.ql-direction
svg:first-child
display: none
.ql-direction.ql-active
svg:first-child
display: inline
svg:last-child
display: none

.ql-picker
// background-color: yellow // TODO remove
color: inactiveColor
Expand Down
4 changes: 3 additions & 1 deletion themes/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class BaseTheme extends Theme {
if (!name.startsWith('ql-')) return;
name = name.slice('ql-'.length);
if (icons[name] == null) return;
if (typeof icons[name] === 'string') {
if (name === 'direction') {
button.innerHTML = icons[name][''] + icons[name]['rtl'];
} else if (typeof icons[name] === 'string') {
button.innerHTML = icons[name];
} else {
let value = button.value || '';
Expand Down

0 comments on commit 242c276

Please sign in to comment.