Skip to content

Commit d3165fc

Browse files
authored
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)
1 parent 02c1388 commit d3165fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/components/modal/modal.ionic.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
// --------------------------------------------------
66

77
:host {
8-
--background: #{globals.$ion-primitives-base-white};
8+
--background: #{globals.$ion-bg-surface-default};
99
--box-shadow: #{globals.$ion-elevation-3};
1010
// Backdrop opacity is 1 because the backdrop's background color has an alpha value
1111
--backdrop-opacity: 1;
1212

13-
color: globals.$ion-primitives-neutral-1200;
13+
color: globals.$ion-text-default;
1414
}
1515

1616
// Shape

0 commit comments

Comments
 (0)