Skip to content

Commit

Permalink
Set fixed width and height for button svg icons (#17)
Browse files Browse the repository at this point in the history
IE requires a fixed with and height for SVGs or they won't scale up at
all making the buttons unreadable in IE.
  • Loading branch information
ajlende authored Jan 8, 2020
1 parent 6797cb3 commit b48484d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blocks/bauhaus-centenary/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
}

.components-icon-button svg {
height: 100%;
width: auto;
// IE11 requires a fixed width & height for SVGs. Values are calculated
// from what `height: 100%` and `width: auto` would have resulted in.
height: 26px;
width: 39px;
}
}

Expand Down

0 comments on commit b48484d

Please sign in to comment.