-
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(breadcrumb): use new step color tokens #28930
Conversation
@@ -4,22 +4,22 @@ | |||
// -------------------------------------------------- | |||
|
|||
/// @prop - Color of the breadcrumb | |||
$breadcrumb-ios-color: var(--ion-color-step-850, #2d4665) !default; | |||
$breadcrumb-ios-color: var(--ion-color-step-850, var(--ion-text-color-step-850, #2d4665)) !default; |
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.
My understanding from looking at the design doc was that for text colors, the step count needs to be flipped (e.g. 850 -> 150). I think there aren't any diffs because these all have fallback colors? I'm not 100% confident I know how it all works, to be honest 😆
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.
Your understanding is correct. The legacy stepped colors go from white (the background) to black (the text color). However, when using the new text step colors those always go from black (the text color) to white (the background) when in light mode. That's why we need to invert the numbers for the text color tokens only.
Ok, I think this is finally good to go. We decided that
|
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.
Thank you!
Issue number: Internal
What is the current behavior?
The breadcrumbs use the
--ion-color-step
tokens or a fallback.What is the new behavior?
--ion-color-step
tokens or the--ion-text-color-step
tokens or a fallback--ion-color-step
tokens or the--ion-background-color-step
tokens or a fallbackDoes this introduce a breaking change?