-
Notifications
You must be signed in to change notification settings - Fork 42
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
Update theme bridge v5 variables based on v5.0.0-alpha.6
#2436
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 07ac22b.
v5.0.0-alpha.6
--iui-color-background-zebra: var(--iui-color-background); /* TODO: Use proper value when added */ | ||
--iui-color-background: var(--ids-color-bg-page-base); | ||
--iui-color-background-disabled: var(--ids-color-bg-glow-on-surface-disabled); | ||
--iui-color-background-zebra: var(--ids-color-bg-page-zebra); |
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.
To confirm, am I using the zebra variable correctly? Because I saw little to no difference between the regular and zebra Table rows.
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.
Ah, good catch. It looks like this variable is not meant to be used on its own; it's supposed to be combined with bg-page-base
.
For now, I would say let's keep using bg-page-base
and leave the TODO there. It can be fixed in a future release.
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.
--iui-color-background-zebra: var(--ids-color-bg-page-zebra); | |
--iui-color-background-zebra: var(--iui-color-background); /* TODO: Use proper value when added */ |
'@itwin/itwinui-react': patch | ||
--- | ||
|
||
Theme bridge uses latest token names introduced in `@itwin/[email protected]`. |
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.
It's more than token names; we can just say "breaking changes".
Theme bridge uses latest token names introduced in `@itwin/[email protected]`. | |
The **theme bridge** has been updated to handle the breaking changes introduced in `@itwin/[email protected]`. |
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 after the two suggestions are applied.
Changes
Updates the iTwinUI v5 variable names in the theme bridge to match those from the soon to be released
@itwin/[email protected]
version.Since that alpha version also released a zebra background color (
--ids-color-bg-page-zebra
), updated--iui-color-background-zebra
to use that variable. (88edec5). However, not sure if I used that variable correctly because I saw little to no different of the zebra color from the regular background color.Updated the css-workshop and react-workshop to use
@itwin/[email protected]
.Testing
Docs