diff --git a/core/src/components/button/button.tsx b/core/src/components/button/button.tsx index 64fa387d5d..ba10f9db2b 100644 --- a/core/src/components/button/button.tsx +++ b/core/src/components/button/button.tsx @@ -137,7 +137,7 @@ export class Button implements ComponentInterface, AnchorInterface, ButtonInterf } private get hasIconOnly() { - return !!this.el.querySelector('ion-icon[slot="icon-only"]'); + return !!this.el.querySelector('[slot="icon-only"]'); } private get rippleType() { diff --git a/core/src/components/button/test/icon/index.html b/core/src/components/button/test/icon/index.html index deb5afdf52..535d62aed1 100644 --- a/core/src/components/button/test/icon/index.html +++ b/core/src/components/button/test/icon/index.html @@ -17,6 +17,14 @@ Button - Icon + + + + + + + + @@ -26,8 +34,6 @@ Left Icon -

-

Left Icon @@ -38,8 +44,6 @@ Right Icon -

-

Right Icon @@ -49,8 +53,6 @@ -

-

@@ -60,8 +62,6 @@ Left, Large -

-

Left, Large @@ -72,8 +72,6 @@ Right, Large -

-

Right, Large @@ -83,8 +81,6 @@ -

-

@@ -94,8 +90,6 @@ Left, Small -

-

Left, Small @@ -106,8 +100,6 @@ Right, Small -

-

Right, Small @@ -117,8 +109,6 @@ -

-

@@ -128,4 +118,15 @@ + +