Skip to content

Commit a44cdc6

Browse files
authored
fix: enable default icon size to be changed (#629)
move the default font size to the host element so it can be styled externally
1 parent 833a1c2 commit a44cdc6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/main/src/themes/Icon.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
:host(ui5-icon:not([hidden])) {
1+
:host(:not([hidden])) {
22
display: inline-block;
33
outline: none;
44
color: var(--sapUiContentNonInteractiveIconColor);
5+
font-size: var(--sapUiFontSize);
56
}
67

78
ui5-icon:not([hidden]) {
89
display: inline-block;
910
outline: none;
1011
color: var(--sapUiContentNonInteractiveIconColor);
12+
font-size: var(--sapUiFontSize);
1113
}
1214

1315
.sapWCIcon {
@@ -25,7 +27,6 @@ ui5-icon:not([hidden]) {
2527
content: attr(data-sap-ui-icon-content);
2628
speak: none;
2729
font-weight: normal;
28-
font-size: var(--sapUiFontSize);
2930
-webkit-font-smoothing: antialiased;
3031
display: flex;
3132
justify-content: center;

0 commit comments

Comments
 (0)