Skip to content

Commit

Permalink
Fixed: icon centering in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
neSpecc committed Apr 25, 2020
1 parent 775ccbc commit f4c4051
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/editor.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- `Improvements` - Fix many code-style issues, add missed annotations.
- `Improvements` - Adjusted GitHub Action for ESLint.
- `New` *I18n API* — Ability to provide internalization for Editor.js core and tools. [#751](https://github.com/codex-team/editor.js/issues/751)
- `Fix` - Fixed wrong toolbar icon centering in Firefox [#1120](https://github.com/codex-team/editor.js/pull/1120)

### 2.17

Expand Down
7 changes: 2 additions & 5 deletions src/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
*/
--toolbar-button: {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
line-height: 34px;
Expand All @@ -135,11 +137,6 @@
background-color: var(--bg-light);
}

& > svg,
.icon {
margin: auto;
}

&--active {
color: var(--color-active-icon);
}
Expand Down

0 comments on commit f4c4051

Please sign in to comment.