Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Ensure the icons in the classic block toolbar always use dashicons.
Browse files Browse the repository at this point in the history
Our non-latin font family overrides use !important to swap in more langauge-appropriate fonts. This unfortunately writes over the dashicons font family used in the toolbar of the Classic block. This commit adds a more specific override to prevent that.
  • Loading branch information
kjellr committed Nov 28, 2018
1 parent 2a08a3f commit 2bf71ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -757,3 +757,8 @@ ul.wp-block-archives li ul,
line-height: 1.6;
color: #767676;
}

/* Make sure our non-latin font overrides don't overwrite icons in the classic editor toolbar */
.wp-block[data-type="core/freeform"] .mce-btn i {
font-family: dashicons !important;
}
5 changes: 5 additions & 0 deletions style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -753,3 +753,8 @@ ul.wp-block-archives,
}
}
}

/* Make sure our non-latin font overrides don't overwrite the iconfont used in the classic editor toolbar */
.wp-block[data-type="core/freeform"] .mce-btn i {
font-family: dashicons !important;
}

0 comments on commit 2bf71ce

Please sign in to comment.