Skip to content

fix(tokens): update tokens version and adjust its usage - #31680

Merged
BenOsodrac merged 5 commits into
nextfrom
ROU-13159
Nov 3, 2026
Merged

BenOsodrac merged 5 commits into
nextfrom
ROU-13159

Conversation

@BenOsodrac

@BenOsodrac BenOsodrac commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Issue number: internal


What is the new behavior?

This pull request updates the design tokens package and refines the visual styling of several Ionic components to improve consistency and support new elevation/background tokens. The most significant changes are the adoption of new elevation background variables, updates to box-shadow levels, and a dependency bump for design tokens.

Design tokens and dependency updates:

  • Upgraded outsystems-design-tokens dependency from version 2.5.0 to 2.6.0 in both package.json and package-lock.json, ensuring access to the latest design primitives and variables. [1] [2] [3]

Component visual updates:

  • Updated the background and box-shadow variables for action-sheet, alert, modal, popover, and toast components to use the new elevation tokens (e.g., --background: #{globals.$ion-bg-surface-elevation-3} and adjusted shadow levels), aligning with the new design system elevations. [1] [2] [3] [4] [5]

Design token variable management:

  • Moved the definitions for $ion-primitives-base-white, $ion-primitives-base-black, and their RGB variants to a new location in ionic.vars.scss to improve organization and maintainability. [1] [2]

  • Added new elevation background variables ($ion-bg-surface-elevation-2, $ion-bg-surface-elevation-3, and their RGB variants) to the design token definitions to support the updated component backgrounds.

Does this introduce a breaking change?

  • Yes
  • No

@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Nov 3, 2026 9:22am UTC

Request Review

@github-actions github-actions Bot added the package: core @ionic/core package label Nov 2, 2026
@BenOsodrac BenOsodrac added package: react @ionic/react package dependencies Pull requests that update a dependency file labels Nov 2, 2026
@github-actions github-actions Bot removed the package: react @ionic/react package label Nov 2, 2026
@BenOsodrac
BenOsodrac marked this pull request as ready for review November 2, 2026 13:41
@BenOsodrac
BenOsodrac requested a review from a team as a code owner November 2, 2026 13:41
@BenOsodrac
BenOsodrac requested review from ShaneK and brandyscarney and a balanced review from Copilot and removed request for ShaneK November 2, 2026 13:41
@BenOsodrac

Copy link
Copy Markdown
Contributor Author

@brandyscarney the angular failures are false positives, probably missing next sync from main.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Opaque child backgrounds hide the elevated modal and popover surfaces, requiring overlay-scoped defaults that preserve explicit consumer background and color overrides.

1 open issue
1 file not reviewed
  • core/package-lock.json: Generated file
What changed in this PR

Updates Ionic components to use the latest design tokens, aligning overlay backgrounds and shadows with the new elevation styles.

Changes:

  • Upgrades outsystems-design-tokens from 2.5.0 to 2.6.0.
  • Adds elevation background variables and reorganizes base color definitions.
  • Updates overlay backgrounds and adjusts modal, popover, and toast shadows.
File Description
core/​src/​foundations/​ionic.vars.scss Adds elevation surface variables and relocates base color definitions.
core/​src/​components/​toast/​toast.ionic.scss Changes the shadow to elevation 2.
core/​src/​components/​popover/​popover.ionic.scss Uses elevation-3 background and shadow tokens.
core/​src/​components/​modal/​modal.ionic.scss Uses an elevation-3 background and elevation-4 shadow.
core/​src/​components/​alert/​alert.ionic.scss Uses the elevation-3 background token.
core/​src/​components/​action-sheet/​action-sheet.ionic.scss Uses the elevation-3 background token.
core/​package.json Updates the design tokens dependency range.
core/​package-lock.json Locks design tokens to version 2.6.0.

Review effort: Balanced

@BenOsodrac
BenOsodrac requested review from ShaneK and removed request for brandyscarney November 2, 2026 14:16
@ShaneK

ShaneK commented Nov 2, 2026

Copy link
Copy Markdown
Member

Hey @BenOsodrac, working on a sync PR for main into next currently (here)

@ShaneK ShaneK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I left a couple of questions about the overlay surfaces, but nothing that should hold this up.

…ic theme

ion-content, ion-toolbar and ion-item paint their own surface background,
which covered the elevated modal/popover fill. Default them to the same
elevation-3 surface inside overlays, using :where() so consumer
--background overrides still apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@ShaneK ShaneK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, looks good to me! I left one small suggestion, up to you!

Comment thread core/src/css/ionic/core.ionic.scss Resolved
Co-authored-by: Shane <shane.king@outsystems.com>
@BenOsodrac
BenOsodrac merged commit 85a3203 into next Nov 3, 2026
54 checks passed
@BenOsodrac
BenOsodrac deleted the ROU-13159 branch November 3, 2026 09:46

This branch was successfully deployed

1 active deployment
Preview — 91a12593 Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants