From d3165fc229b63d615d669d321058db395fff26c2 Mon Sep 17 00:00:00 2001 From: Bernardo Cardoso <32780808+BenOsodrac@users.noreply.github.com> Date: Wed, 30 Apr 2025 14:38:11 +0100 Subject: [PATCH] fix(modal): fix color tokens on ionic theme (#30379) Issue number: internal --------- ## What is the new behavior? - Fixed the tokens used on background and text. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information - [Ionic Custom Dialog](https://ionic-framework-git-rou-11900-ionic1.vercel.app/src/components/modal/test/custom-dialog?ionic:theme=ionic) --- core/src/components/modal/modal.ionic.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/components/modal/modal.ionic.scss b/core/src/components/modal/modal.ionic.scss index aa38be59e2..80244c5ba6 100644 --- a/core/src/components/modal/modal.ionic.scss +++ b/core/src/components/modal/modal.ionic.scss @@ -5,12 +5,12 @@ // -------------------------------------------------- :host { - --background: #{globals.$ion-primitives-base-white}; + --background: #{globals.$ion-bg-surface-default}; --box-shadow: #{globals.$ion-elevation-3}; // Backdrop opacity is 1 because the backdrop's background color has an alpha value --backdrop-opacity: 1; - color: globals.$ion-primitives-neutral-1200; + color: globals.$ion-text-default; } // Shape