File tree 4 files changed +12
-29
lines changed
4 files changed +12
-29
lines changed Original file line number Diff line number Diff line change 24
24
>
25
25
{{ #if icon }}
26
26
<ui5-icon
27
- style =" {{ styles.icon }} "
28
27
class =" ui5-button-icon"
29
28
name =" {{ icon }} "
29
+ part =" icon"
30
30
?show-tooltip ={{ showIconTooltip }}
31
31
></ui5-icon >
32
32
{{ /if }}
Original file line number Diff line number Diff line change @@ -93,19 +93,6 @@ const metadata = {
93
93
type : Boolean ,
94
94
} ,
95
95
96
- /**
97
- * Defines the size of the icon inside the <code>ui5-button</code>.
98
- *
99
- * @type {string }
100
- * @defaultvalue undefined
101
- * @public
102
- * @since 1.0.0-rc.8
103
- */
104
- iconSize : {
105
- type : String ,
106
- defaultValue : undefined ,
107
- } ,
108
-
109
96
/**
110
97
* When set to <code>true</code>, the <code>ui5-button</code> will
111
98
* automatically submit the nearest form element upon <code>press</code>.
@@ -486,15 +473,6 @@ class Button extends UI5Element {
486
473
return this . iconOnly && ! this . title ;
487
474
}
488
475
489
- get styles ( ) {
490
- return {
491
- icon : {
492
- width : this . iconSize ,
493
- height : this . iconSize ,
494
- } ,
495
- } ;
496
- }
497
-
498
476
static async onDefine ( ) {
499
477
await fetchI18nBundle ( "@ui5/webcomponents" ) ;
500
478
}
Original file line number Diff line number Diff line change 24
24
25
25
{{ #unless noCloseButton }}
26
26
<ui5-button
27
- icon =" decline"
28
- icon-size =" .75rem"
29
- design =" Transparent"
30
- class =" ui5-messagestrip-close-button"
31
- title =" {{ _closeButtonText }} "
32
- @click ={{ _closeClick }}
27
+ icon =" decline"
28
+ design =" Transparent"
29
+ class =" ui5-messagestrip-close-button"
30
+ title =" {{ _closeButtonText }} "
31
+ @click ={{ _closeClick }}
33
32
></ui5-button >
34
33
{{ /unless }}
35
34
</div >
Original file line number Diff line number Diff line change 91
91
top : 0.125rem ;
92
92
color : var (--sapTextColor );
93
93
}
94
+
94
95
.ui5-messagestrip-close-button [active ] {
95
96
color : var (--sapButton_Active_TextColor );
96
97
}
97
98
99
+ .ui5-messagestrip-close-button ::part (icon ) {
100
+ width : .75rem ;
101
+ height : .75rem ;
102
+ }
103
+
98
104
/* RTL */
99
105
.ui5-messagestrip-root [dir = "rtl" ] {
100
106
padding-right : 2.5rem ;
You can’t perform that action at this time.
0 commit comments