-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(components): support alternate container tokens #6185
feat(components): support alternate container tokens #6185
Conversation
This change makes text input, number input and text area components to reflect `$container-0x` tokens, so that those components work well with alternate set of type/container/icon tokens. This change also includes our (alternate) development environment setup, enabled with `CARBON_REACT_STORYBOOK_USE_EXPRESSIVE_THEME=true` environment variable, to test such alternate set of type/container/icon tokens. Refs carbon-design-system#6183.
Deploy preview for carbon-elements ready! Built with commit 6576b56 |
Deploy preview for carbon-components-react ready! Built with commit 6576b56 https://deploy-preview-6185--carbon-components-react.netlify.app |
@@ -111,7 +111,7 @@ | |||
justify-content: center; | |||
align-items: center; | |||
width: rem(32px); | |||
height: rem(20px); | |||
height: calc(#{$input-height} / 2); |
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.
Any reason we are using calc here, but on L232 we are doing an inline calc?
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.
Good catch @tw15egan! I meant to use calc()
for other places, too, because Sass-based calculation does not work if e.g. $input-height
has a CSS custom property as the value.
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.
looks good to me
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
This change makes text input, number input and text area components to reflect
$container-0x
tokens, so that those components work well with alternate set of type/container/icon tokens.This change also includes our (alternate) development environment setup, enabled with
CARBON_REACT_STORYBOOK_USE_EXPRESSIVE_THEME=true
environment variable, to test such alternate set of type/container/icon tokens.Refs #6183.
Changelog
New
Testing / Reviewing
Testing should make sure text input, number input and text area as well as our development environment are not broken.