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 @@
+