fix(modal): fix color tokens on ionic theme (#30379)

Issue number: internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->


## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Fixed the tokens used on background and text.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

- [Ionic Custom
Dialog](https://ionic-framework-git-rou-11900-ionic1.vercel.app/src/components/modal/test/custom-dialog?ionic:theme=ionic)
This commit is contained in:
Bernardo Cardoso
2025-04-30 14:38:11 +01:00
committed by GitHub
parent 02c138802a
commit d3165fc229

View File

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