-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
refactor(many): remove *.ionic.vars files #29983
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
💙
$tabbar-ionic-background: var(--ion-tab-bar-background, globals.$ion-primitives-base-white); | ||
$tabbar-ionic-background-activated: var(--ion-tab-bar-background-activated, globals.$ion-primitives-neutral-100); | ||
$tabbar-ionic-background-focused: var(--ion-tab-bar-background-focused, transparent); | ||
$tabbar-ionic-color: var(--ion-tab-bar-color, globals.$ion-primitives-neutral-800); | ||
$tabbar-ionic-color-selected: var(--ion-tab-bar-color-selected, globals.$ion-semantics-primary-base); | ||
$tabbar-ionic-border-color: var(--ion-tab-bar-border-color, transparent); |
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 are we creating special variables for these instead of just referencing the existing variables like we do for everything else?
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.
These are created separately because they use the global application color variables defined here: https://ionicframework.com/docs/theming/themes#application-colors
This matches how ios
and md
define them:
ionic-framework/core/src/themes/native/native.theme.default.md.scss
Lines 15 to 22 in ca091e2
$tabbar-md-background: var(--ion-tab-bar-background, $background-color); | |
$tabbar-md-background-focused: var(--ion-tab-bar-background-focused, get-color-shade(#fff)); | |
$tabbar-md-border-color: var( | |
--ion-tab-bar-border-color, | |
var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.07)))) | |
); | |
$tabbar-md-color: var(--ion-tab-bar-color, $text-color-step-350); | |
$tabbar-md-color-selected: var(--ion-tab-bar-color-selected, ion-color(primary, base)); |
Ideally we would want to add more of these to the ionic theme to match the available colors offered for toolbar, item, etc.
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.
Gotcha. Thanks for clarifying!
Issue number: internal
What is the current behavior?
Some components have
component.ionic.vars.scss
files defined for the Ionic theme.What is the new behavior?
*.ionic.vars.scss
files for item, list and input and uses the design tokens directlytab-bar.ionic.vars.scss
file and moves the variables to the default ionic theme file since this uses global css variablesDoes this introduce a breaking change?