Closed oliviaflory closed 3 years ago
Added to the Nov 23 engineering meeting agenda for review and assignment.
Anna and I reviewed the tokens used within the Carbon for IBM.com components on Monday, Dec 7th. Documented potential tokens and components that would be affected in Box note
Next steps: Anna is going to investigate:
- if the expressive theme is being applied to our React and Web component story books
- why the expressive theme type scales don't seem to be changing visually in the storybook
Answer from Anna: we do have the expressive theme enabled in storybook
however when developing we used the productive-zoning mixin that we created a couple months ago when we were going through the megamenu design specs
so for the components using body-long-01 we also used the use-carbon-productive-tokens() mixin which reverts the value back to the productive value
.#{$prefix}--content-item-horizontal__item--eyebrow {
color: $text-05;
padding-bottom: $spacing-03;
@include use-carbon-productive-tokens();
@include carbon--type-style('body-long-01');
}
even if the adopters apply the expressive theme, the productive value is being used for that instance we apply the mixin to
Anna and I agreed that it would be more beneficial to our adopters if we used a single scale and moved everything to use expressive so there aren’t multiple values for one token like $body-short-01 = 14px sometimes and 16px sometimes.
We plan to:
leave the mega menu as-is with the productive mixin
convert all other component to one type scale (expressive)
body-short-01
(14px) changes to expressive caption-01
(14px)Will be updating with pros + cons to each approach and examples of what tokens would look like in specs
Anna and I shared our proposal in Huddle Dec 10th and discussed a few different approaches and the pros and cons associated with them.
Change all components to expressive tokens, and add new token to accommodate mega menu heading style need
Change all components to expressive tokens, and mega menu gets a hard coded heading style
Change all components to expressive tokens, and mega menu maintains productive-mixin
Leave components as they are with productive tokens, hard coding productive moments where we need to and using productive-mixin
Consolidated list of all approaches
Met with Anna, Jeff and Wonil, we determined that Option 3: Change all components to expressive tokens, and mega menu maintains productive-mixin is the best approach.
I will create a dev story and design story identifying which tokens need to be swapped out in our code and design specs to wrap up this issue.
User Story
investigate how the expressive theme might affect the Carbon for IBM.com components
make a plan to resolve any issues.
Additional information
Type token list
Acceptance criteria