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

fix(components): update type styles #1965

Merged
merged 5 commits into from
Mar 4, 2019

Conversation

asudoh
Copy link
Contributor

@asudoh asudoh commented Mar 1, 2019

Refs #1945.

Changelog

Changed

  • Type styles of various components, details below.

Testing / Reviewing

@IBM/carbon-designers: It'd be great if you can review focusing (only) on type tokens of the following components:

Thanks!

BTW did not touch the following components:

@netlify
Copy link

netlify bot commented Mar 1, 2019

Deploy preview for the-carbon-components ready!

Built with commit 3b09e3c

https://deploy-preview-1965--the-carbon-components.netlify.com

Copy link
Member

@aagonzales aagonzales 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! I just have to one question where theres a size and a type token

height: rem(40px);
}

.#{$prefix}--search--xl .#{$prefix}--search-input {
@include typescale('epsilon');
@include type-style('body-short-02');
font-size: carbon--type-scale(4);
Copy link
Member

Choose a reason for hiding this comment

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

What is font-size: carbon--type-scale(4); for and how is it different than the type style?

Copy link
Member

Choose a reason for hiding this comment

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

I'm also unsure what this is used for

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @aagonzales @tw15egan good question - There seems no migration path for typescale('epsilon'), and there seems no type-style() corresponding to the font size for large search. That said, font-size: carbon--type-scale(4) is for ensuring the font size is the one of large search. Does it make sense to you...?

Copy link
Member

Choose a reason for hiding this comment

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

Yes makes sense but why is @include type-style('body-short-02'); still included then. Are you just overriding the size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you just overriding the size?

Yes, bigger font size, everything else is same as type-style('body-short-02').

Copy link
Member

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

Just a few small changes, otherwise good to go

@@ -266,8 +265,7 @@
position: absolute;
margin-left: $spacing-lg;
margin-top: rem(28px);
@include font-size('12');
color: $text-02;
@include type-style('label-01') color: $text-02;
Copy link
Member

Choose a reason for hiding this comment

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

Should this be broken into two lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch @tw15egan thanks! Fixed.

height: rem(40px);
}

.#{$prefix}--search--xl .#{$prefix}--search-input {
@include typescale('epsilon');
@include type-style('body-short-02');
font-size: carbon--type-scale(4);
Copy link
Member

Choose a reason for hiding this comment

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

I'm also unsure what this is used for

@tw15egan tw15egan merged commit 18c273c into carbon-design-system:master Mar 4, 2019
@carbon-bot
Copy link
Contributor

🎉 This PR is included in version 9.82.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

@asudoh asudoh deleted the update-type-styles branch March 4, 2019 19:24
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.

4 participants