Skip to content
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

Merged
merged 6 commits into from
Jun 23, 2020

Conversation

asudoh
Copy link
Contributor

@asudoh asudoh commented Jun 2, 2020

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

  • Alternate container tokens support for text input, number input and text area.
  • Alternate set of type/container/icon tokens in dev env.

Testing / Reviewing

Testing should make sure text input, number input and text area as well as our development environment are not broken.

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.
@asudoh asudoh requested a review from a team as a code owner June 2, 2020 16:34
@ghost ghost requested review from aledavila and dakahn June 2, 2020 16:34
@netlify
Copy link

netlify bot commented Jun 2, 2020

Deploy preview for carbon-elements ready!

Built with commit 6576b56

https://deploy-preview-6185--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jun 2, 2020

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);
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@emyarod emyarod left a 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

Copy link
Contributor

@aledavila aledavila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dakahn dakahn merged commit 4422475 into carbon-design-system:master Jun 23, 2020
@asudoh asudoh deleted the alternate-container-form branch June 24, 2020 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants