Skip to content

Commit 98be562

Browse files
authored
fix(ui5-icon): correct icon graphic vertical alignment in IE (#142)
In RTL the icon is not vertical aligned in IE, that might be seen in before this change in the Icon sample in RTL, opened in IE. * fix typo
1 parent ef00170 commit 98be562

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

packages/main/src/themes/base/Icon.less

+12-3
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,26 @@
1616
color: @sapUiContentNonInteractiveIconColor;
1717
}
1818

19+
:host(ui5-icon) span[data-sap-ui-wc-root] {
20+
display: flex;
21+
width: 100%;
22+
height: 100%;
23+
}
24+
1925
// required for browsers without native shadow dom
2026
ui5-icon {
2127
display: inline-block;
2228
outline: none;
2329
color: @sapUiContentNonInteractiveIconColor;
30+
}
2431

32+
ui5-icon span[data-sap-ui-wc-root] {
33+
display: flex;
34+
width: 100%;
35+
height: 100%;
2536
// workaround for IE
2637
// pressing on the span does not propagate active state to the web component
27-
& span[data-sap-ui-wc-root] {
28-
pointer-events: none;
29-
}
38+
pointer-events: none;
3039
}
3140

3241
.sapWCIcon {

0 commit comments

Comments
 (0)