From 9ac5152c897780e4177c47e168dd44e1e9bb917d Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Mon, 8 Jul 2024 22:18:41 +0900 Subject: [PATCH] Block Editor: Remove CSS hack for Internet Explorer 11 (#63220) Co-authored-by: t-hamano Co-authored-by: jasmussen --- .../src/components/block-toolbar/style.scss | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/block-editor/src/components/block-toolbar/style.scss b/packages/block-editor/src/components/block-toolbar/style.scss index 6314f1a1e7ffd5..0c2ed94c01e3f0 100644 --- a/packages/block-editor/src/components/block-toolbar/style.scss +++ b/packages/block-editor/src/components/block-toolbar/style.scss @@ -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. @@ -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 {