diff --git a/core/package-lock.json b/core/package-lock.json index a35358ea465..b8e0739c21a 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -45,7 +45,7 @@ "fs-extra": "^9.0.1", "jest": "^29.7.0", "jest-cli": "^29.7.0", - "outsystems-design-tokens": "^2.5.0", + "outsystems-design-tokens": "^2.6.0", "playwright-core": "^1.64.0", "prettier": "^2.8.8", "rollup": "^2.26.4", @@ -9848,9 +9848,9 @@ } }, "node_modules/outsystems-design-tokens": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/outsystems-design-tokens/-/outsystems-design-tokens-2.5.0.tgz", - "integrity": "sha512-TbXTrJgQjB9xjy9hhQJ2TZ4YLsaH1pHhFtYKDN3QUYFEfsYVWjZcS4dQsPSqs3MCubK4+39mEsKeNvKMM1PXpg==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/outsystems-design-tokens/-/outsystems-design-tokens-2.6.0.tgz", + "integrity": "sha512-YfNQVY2SqdtN8Y9bHXqKevkrLkKOjtOSBfRq84ByMnhtbT7G5Ic1kX3WDSnCR5151jjjjYl3bhUfwK3xLdo2FQ==", "dev": true, "license": "BSD-3-Clause", "dependencies": { diff --git a/core/package.json b/core/package.json index 034386d80a6..f5b7a3fdb9c 100644 --- a/core/package.json +++ b/core/package.json @@ -102,7 +102,7 @@ "fs-extra": "^9.0.1", "jest": "^29.7.0", "jest-cli": "^29.7.0", - "outsystems-design-tokens": "^2.5.0", + "outsystems-design-tokens": "^2.6.0", "playwright-core": "^1.64.0", "prettier": "^2.8.8", "rollup": "^2.26.4", diff --git a/core/src/components/action-sheet/action-sheet.ionic.scss b/core/src/components/action-sheet/action-sheet.ionic.scss index bdf890d597a..0913a7eba0d 100644 --- a/core/src/components/action-sheet/action-sheet.ionic.scss +++ b/core/src/components/action-sheet/action-sheet.ionic.scss @@ -7,7 +7,7 @@ // -------------------------------------------------- :host { - --background: #{globals.$ion-bg-surface-default}; + --background: #{globals.$ion-bg-surface-elevation-3}; --backdrop-opacity: 0.7; --button-background: transparent; --button-background-selected: #{globals.$ion-bg-primary-subtle-default}; diff --git a/core/src/components/alert/alert.ionic.scss b/core/src/components/alert/alert.ionic.scss index 714b0321246..d86590180fb 100644 --- a/core/src/components/alert/alert.ionic.scss +++ b/core/src/components/alert/alert.ionic.scss @@ -7,7 +7,7 @@ // -------------------------------------------------- :host { - --background: #{globals.$ion-bg-surface-default}; + --background: #{globals.$ion-bg-surface-elevation-3}; --max-width: #{globals.$ion-scale-7400}; --backdrop-opacity: 0.7; diff --git a/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png index 05baaf67ca4..9f8ab6d134a 100644 Binary files a/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png index cb66a170bf0..75f0093d511 100644 Binary files a/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Safari-linux.png index ab5c02d7063..dfaf2a5a7da 100644 Binary files a/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/app/test/safe-area/app.e2e.ts-snapshots/app-toast-diff-ionic-md-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/modal/modal.ionic.scss b/core/src/components/modal/modal.ionic.scss index ec46628a9bc..b1e4d08f588 100644 --- a/core/src/components/modal/modal.ionic.scss +++ b/core/src/components/modal/modal.ionic.scss @@ -5,8 +5,8 @@ // -------------------------------------------------- :host { - --background: #{globals.$ion-bg-surface-default}; - --box-shadow: #{globals.$ion-elevation-3}; + --background: #{globals.$ion-bg-surface-elevation-3}; + --box-shadow: #{globals.$ion-elevation-4}; // Backdrop opacity is 1 because the backdrop's background color has an alpha value --backdrop-opacity: 0.7; diff --git a/core/src/components/popover/popover.ionic.scss b/core/src/components/popover/popover.ionic.scss index 533c697f768..e7ac1a60954 100644 --- a/core/src/components/popover/popover.ionic.scss +++ b/core/src/components/popover/popover.ionic.scss @@ -7,7 +7,8 @@ :host { --width: 250px; --max-height: 90%; - --box-shadow: #{globals.$ion-elevation-4}; + --background: #{globals.$ion-bg-surface-elevation-3}; + --box-shadow: #{globals.$ion-elevation-3}; --backdrop-opacity: 0.3; } diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Chrome-linux.png index 741aaf90e84..0c0a1c9bf9a 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Firefox-linux.png index f354b46b2c5..2f921b2aec9 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Safari-linux.png index aac019671e6..7d1b0db5ea9 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-ios-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Chrome-linux.png index 5393a1e318d..fc2a1ce2694 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Firefox-linux.png index cb4ad0cff53..5201ebe422d 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-bottom-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Chrome-linux.png index 43f163da89d..6b2fb2809aa 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Firefox-linux.png index 8c299b10d6f..e7ee32c26fb 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Safari-linux.png index ac55310004e..72a89c7c70c 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-ios-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Chrome-linux.png index a8dc7229436..6b2fb2809aa 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Firefox-linux.png index 3385990c169..e7ee32c26fb 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Safari-linux.png index ac55310004e..72a89c7c70c 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-middle-ionic-md-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Chrome-linux.png index 4ba92a56def..6f4fc62fc3f 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Firefox-linux.png index 2552590ee20..00a69ce9532 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Safari-linux.png index 89859a4a764..aff590eb131 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-ios-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Chrome-linux.png index a702fb84e5e..127b0c30346 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Firefox-linux.png index 285454d20d8..e0090f30df2 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Safari-linux.png index 3881a5aaa96..ad2b38ff361 100644 Binary files a/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/basic/toast.e2e.ts-snapshots/toast-top-ionic-md-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Chrome-linux.png index 1dc3d4245c6..b7c0443ee98 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Firefox-linux.png index f313e556d5a..4281ba61902 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Safari-linux.png index 3302ebb0a54..a15350e4c83 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-rectangular-ionic-md-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Chrome-linux.png index 404d302e5a3..6f176cea6ff 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Firefox-linux.png index 11a64012721..bf1f0177e80 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Safari-linux.png index f65d4ebf47f..65b2d7e77dd 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-round-ionic-md-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Chrome-linux.png index d08f9d7c286..bc82bdac758 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Firefox-linux.png index e06525b7a1d..614dfd81e4b 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Safari-linux.png index a1d34c74a59..d3417656ab6 100644 Binary files a/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/toast/test/shape/toast.e2e.ts-snapshots/toast-shape-soft-ionic-md-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/toast/toast.ionic.scss b/core/src/components/toast/toast.ionic.scss index 56b3b357f5e..d2b45e2297e 100644 --- a/core/src/components/toast/toast.ionic.scss +++ b/core/src/components/toast/toast.ionic.scss @@ -5,7 +5,7 @@ // -------------------------------------------------- :host { - --box-shadow: #{globals.$ion-elevation-4}; + --box-shadow: #{globals.$ion-elevation-2}; --max-width: 343px; --start: #{globals.$ion-space-200}; --end: #{globals.$ion-space-200}; diff --git a/core/src/css/ionic/core.ionic.scss b/core/src/css/ionic/core.ionic.scss index 0b48dca723e..4fec4691eaa 100644 --- a/core/src/css/ionic/core.ionic.scss +++ b/core/src/css/ionic/core.ionic.scss @@ -34,6 +34,20 @@ body.backdrop-no-scroll { overflow: hidden; } +// Overlay Surfaces +// -------------------------------------------------- + +/** + * Modals and popovers use the elevated panel surface. The components + * slotted inside them paint their own opaque surface background, which + * would cover the overlay's fill, so they default to the same panel + * surface. `:where()` keeps the specificity at zero so any consumer + * `--background` override on these components still applies. + */ +:where(html.ionic ion-modal, html.ionic ion-popover) :where(ion-content, ion-toolbar, ion-item:not(ion-card ion-item)) { + --background: #{globals.$ion-bg-surface-elevation-3}; +} + // Modal - Card Style // -------------------------------------------------- diff --git a/core/src/foundations/ionic.vars.scss b/core/src/foundations/ionic.vars.scss index 28c1a8e0a03..ffdd4707089 100644 --- a/core/src/foundations/ionic.vars.scss +++ b/core/src/foundations/ionic.vars.scss @@ -23,10 +23,6 @@ $ion-primitives-neutral-1100: var(--token-primitives-neutral-1100, #2c3238); $ion-primitives-neutral-1100-rgb: var(--token-primitives-neutral-1100-rgb, 44, 50, 56); $ion-primitives-neutral-1200: var(--token-primitives-neutral-1200, #242528); $ion-primitives-neutral-1200-rgb: var(--token-primitives-neutral-1200-rgb, 36, 37, 40); -$ion-primitives-base-white: var(--token-primitives-base-white, #ffffff); -$ion-primitives-base-white-rgb: var(--token-primitives-base-white-rgb, 255, 255, 255); -$ion-primitives-base-black: var(--token-primitives-base-black, #131518); -$ion-primitives-base-black-rgb: var(--token-primitives-base-black-rgb, 19, 21, 24); $ion-primitives-red-100: var(--token-primitives-red-100, #ffeff1); $ion-primitives-red-100-rgb: var(--token-primitives-red-100-rgb, 255, 239, 241); $ion-primitives-red-200: var(--token-primitives-red-200, #fcd8dc); @@ -363,6 +359,10 @@ $ion-primitives-pink-1100: var(--token-primitives-pink-1100, #860853); $ion-primitives-pink-1100-rgb: var(--token-primitives-pink-1100-rgb, 134, 8, 83); $ion-primitives-pink-1200: var(--token-primitives-pink-1200, #69083d); $ion-primitives-pink-1200-rgb: var(--token-primitives-pink-1200-rgb, 105, 8, 61); +$ion-primitives-base-white: var(--token-primitives-base-white, #ffffff); +$ion-primitives-base-white-rgb: var(--token-primitives-base-white-rgb, 255, 255, 255); +$ion-primitives-base-black: var(--token-primitives-base-black, #131518); +$ion-primitives-base-black-rgb: var(--token-primitives-base-black-rgb, 19, 21, 24); // Scale $ion-scale-0: var(--token-scale-0, 0px); @@ -597,6 +597,10 @@ $ion-bg-surface-default-rgb: var(--token-bg-surface-default-rgb, 255, 255, 255); $ion-bg-surface-inverse: var(--token-bg-surface-inverse, $ion-primitives-base-white); $ion-bg-surface-inverse-rgb: var(--token-bg-surface-inverse-rgb, 255, 255, 255); $ion-bg-surface-blur: var(--token-bg-surface-blur, rgba(255, 255, 255, 0.8)); +$ion-bg-surface-elevation-2: var(--token-bg-surface-elevation-2, $ion-primitives-base-white); +$ion-bg-surface-elevation-2-rgb: var(--token-bg-surface-elevation-2-rgb, 255, 255, 255); +$ion-bg-surface-elevation-3: var(--token-bg-surface-elevation-3, $ion-primitives-base-white); +$ion-bg-surface-elevation-3-rgb: var(--token-bg-surface-elevation-3-rgb, 255, 255, 255); $ion-bg-primary-base-default: var(--token-bg-primary-base-default, $ion-semantics-primary-base); $ion-bg-primary-base-default-rgb: var(--token-bg-primary-base-default-rgb, 16, 92, 239); $ion-bg-primary-base-hover: var(--token-bg-primary-base-hover, $ion-semantics-primary-800);