diff --git a/packages/main/src/Button.hbs b/packages/main/src/Button.hbs index 82b272a50d4d..b50dbe7fab2d 100644 --- a/packages/main/src/Button.hbs +++ b/packages/main/src/Button.hbs @@ -24,9 +24,9 @@ > {{#if icon}} {{/if}} diff --git a/packages/main/src/Button.js b/packages/main/src/Button.js index ec4a5291e335..284df1b49239 100644 --- a/packages/main/src/Button.js +++ b/packages/main/src/Button.js @@ -93,19 +93,6 @@ const metadata = { type: Boolean, }, - /** - * Defines the size of the icon inside the ui5-button. - * - * @type {string} - * @defaultvalue undefined - * @public - * @since 1.0.0-rc.8 - */ - iconSize: { - type: String, - defaultValue: undefined, - }, - /** * When set to true, the ui5-button will * automatically submit the nearest form element upon press. @@ -486,15 +473,6 @@ class Button extends UI5Element { return this.iconOnly && !this.title; } - get styles() { - return { - icon: { - width: this.iconSize, - height: this.iconSize, - }, - }; - } - static async onDefine() { await fetchI18nBundle("@ui5/webcomponents"); } diff --git a/packages/main/src/MessageStrip.hbs b/packages/main/src/MessageStrip.hbs index 42a0387eaf23..c622fdaceb27 100644 --- a/packages/main/src/MessageStrip.hbs +++ b/packages/main/src/MessageStrip.hbs @@ -24,12 +24,11 @@ {{#unless noCloseButton}} {{/unless}} diff --git a/packages/main/src/themes/MessageStrip.css b/packages/main/src/themes/MessageStrip.css index bb1b02d9dbf7..aaa63256b436 100644 --- a/packages/main/src/themes/MessageStrip.css +++ b/packages/main/src/themes/MessageStrip.css @@ -91,10 +91,16 @@ top: 0.125rem; color: var(--sapTextColor); } + .ui5-messagestrip-close-button[active] { color: var(--sapButton_Active_TextColor); } +.ui5-messagestrip-close-button::part(icon) { + width: .75rem; + height: .75rem; +} + /* RTL */ .ui5-messagestrip-root[dir="rtl"] { padding-right: 2.5rem;