From 2037c36db131ace546ec8d313fbde97eab58e47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferreira?= Date: Fri, 31 Oct 2025 17:31:57 +0000 Subject: [PATCH] - clean ripple effect; - clean warning rule; - update solid background-activated var; --- core/src/components/button/button.ionic.scss | 24 +------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/core/src/components/button/button.ionic.scss b/core/src/components/button/button.ionic.scss index 042d825faa..aa6ffa151d 100644 --- a/core/src/components/button/button.ionic.scss +++ b/core/src/components/button/button.ionic.scss @@ -43,7 +43,7 @@ // -------------------------------------------------- :host(.button-solid) { - --background-activated: #{globals.ion-color(primary, shade)}; + --background-activated: #{globals.current-color(shade)}; --background-hover: #{globals.ion-color(primary, shade)}; --background-focused: transparent; --background-hover-opacity: 1; @@ -69,16 +69,6 @@ --ripple-color: var(--background-activated); } -// Provide fallbacks for ion-color-base for all colors -:host(.button-outline.ion-color.ion-color-warning) { - .button-native { - --ion-color-base: #{globals.$ion-text-warning}; - } - ion-ripple-effect { - --ion-color-base: var(--ion-color-base, #{globals.current-color(shade, $subtle: true)}); - } -} - // Clear Button // -------------------------------------------------- @@ -98,18 +88,6 @@ } } -// Ripple Effect -// ------------------------------------------------------------------------------- - -:host(.button-solid.ion-color) ion-ripple-effect { - color: globals.ion-color(primary, shade); -} - -:host(.button-outline.ion-color) ion-ripple-effect, -:host(.button-clear.ion-color) ion-ripple-effect { - color: globals.current-color(shade, $subtle: true); -} - // Button Sizes // -------------------------------------------------------------------------------