-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(tokens): remove style dictionary scripts and reuse os tokens logic #30786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thetaPC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The foundations/README.md also needs to be updated to exlcude ionic.utility.scss since that file isn't being generated anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this deletion. We use it to test on ios and md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done!
brandyscarney
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this based on the changes but please review my comments as some of the screenshot diffs look wrong and will likely need to be addressed. 👍
...est/hint/badge.e2e.ts-snapshots/badge-hint-avatar-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
...ple/accordion.e2e.ts-snapshots/accordion-one-open-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
...ip/test/states/chip.e2e.ts-snapshots/chip-focused-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
...egment.e2e.ts-snapshots/segment-layout-label-only-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
...shape/tab-bar.e2e.ts-snapshots/tab-bar-shape-soft-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
...n/test/basic/button.e2e.ts-snapshots/button-diff-ionic-ios-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
thetaPC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as long as Brandy's feedback is addressed.
brandyscarney
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few remaining questions but nothing blocking, code updates look good!
...shape/tab-bar.e2e.ts-snapshots/tab-bar-shape-soft-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
...tle/test/basic/title.e2e.ts-snapshots/title-basic-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
| @@ -895,18 +876,18 @@ $ion-font-weight-semi-bold: var(--token-font-weight-semi-bold, 600); | |||
| $ion-font-weight-bold: var(--token-font-weight-bold, 700); | |||
| $ion-font-weight-extra-bold: var(--token-font-weight-extra-bold, 800); | |||
| $ion-font-weight-black: var(--token-font-weight-black, 900); | |||
| $ion-font-size-275: var(--token-font-size-275, font.px-to-rem(11)); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we remove the px-to-rem call? Don't we need this for dynamic fonts? Or do we plan to update this later?
...ip/test/states/chip.e2e.ts-snapshots/chip-focused-ionic-md-ltr-light-Mobile-Chrome-linux.png
Show resolved
Hide resolved
536af26 to
fcc4dbf
Compare
Issue number: internal
What is the new behavior?
This pull request updates the design token build system and its dependencies, simplifying the process and removing custom scripts in favor of using the latest features of the
outsystems-design-tokenspackage. The changes modernize how design tokens are generated and maintained, reducing custom code and leveraging upstream improvements.Key changes include:
Build Process Simplification:
core/scripts/tokens/index.mjsandcore/scripts/tokens/utils.mjs) have been removed. Token generation is now handled directly via theoutsystems-design-tokenspackage using annpxcommand in thebuild.tokensscript. This reduces maintenance overhead and keeps the build process aligned with upstream best practices. [1] [2] [3]Dependency Updates:
outsystems-design-tokensto version1.3.3andstyle-dictionaryto version5.1.1in bothpackage.jsonandpackage-lock.json. This ensures compatibility with the latest features and bug fixes and removes the need to specifystyle-dictionarydirectly as a dependency. [1] [2] [3] [4]SCSS Utility Import:
@forward "../../foundations/ionic.utility";statement was removed fromcore/src/css/ionic/utils.bundle.ionic.scss, likely because the utility SCSS is now generated and managed by the new token build process.Removed CSS tests for Ionic theme, as they relied heavily on testing the effect of the utility-classes, that are no longer created on the ionic scope.
Does this introduce a breaking change?