Skip to content

Commit b48484d

Browse files
authored
Set fixed width and height for button svg icons (#17)
IE requires a fixed with and height for SVGs or they won't scale up at all making the buttons unreadable in IE.
1 parent 6797cb3 commit b48484d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

blocks/bauhaus-centenary/editor.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
}
66

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

0 commit comments

Comments
 (0)