diff --git a/packages/main/src/themes/Button.css b/packages/main/src/themes/Button.css index a0899ef55288..dce15e78c41c 100644 --- a/packages/main/src/themes/Button.css +++ b/packages/main/src/themes/Button.css @@ -106,6 +106,9 @@ /* calculating the minimum width by removing the icon size */ min-width: calc(var(--_ui5_button_base_min_width) - var(--_ui5_button_base_icon_margin) - 1rem); } +:host([disabled]:active) { + pointer-events: none; +} :host([focused]) .ui5-button-root:after { content: ""; diff --git a/packages/main/test/pages/Button.html b/packages/main/test/pages/Button.html index 448e808d0d9b..6c9b48f285f4 100644 --- a/packages/main/test/pages/Button.html +++ b/packages/main/test/pages/Button.html @@ -1,7 +1,7 @@ - + Button @@ -13,7 +13,7 @@ - + @@ -116,6 +116,8 @@
Icon last + + Disabled Buton @@ -172,11 +174,11 @@ Emphasized Emphasized -
-
- Download - Download - Download +
+
+ Download + Download + Download

@@ -221,13 +223,15 @@ Register -