Skip to content

Commit

Permalink
Block Editor: Remove CSS hack for Internet Explorer 11 (#63220)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
  • Loading branch information
3 people committed Jul 8, 2024
1 parent 4f1bbc6 commit 57d937b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/block-editor/src/components/block-toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
.components-toolbar-group,
.components-toolbar {
background: none;
// IE11 has thick paddings without this.
line-height: 0;

// These margins make the buttons themselves overlap the chrome of the toolbar.
// This helps make them square, and maximize the hit area.
Expand Down Expand Up @@ -151,15 +149,7 @@
}

.block-editor-block-toolbar__slot {
// Required for IE11.
display: inline-block;
// Fix for toolbar button misalignment on IE11
line-height: 0;

// IE11 doesn't read rules inside this query. They are applied only to modern browsers.
@supports (position: sticky) {
display: inline-flex;
}
display: inline-flex;
}

.show-icon-labels {
Expand Down

0 comments on commit 57d937b

Please sign in to comment.