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(spacing): change layout variables to spacing #8063

Merged
merged 3 commits into from
Mar 26, 2021

Conversation

tw15egan
Copy link
Collaborator

@tw15egan tw15egan commented Mar 10, 2021

Closes #5602

Deprecates the layout tokens in favor of a single spacing scale. This change will need to coincide with a website change to update the new/removed tokens

https://www.carbondesignsystem.com/guidelines/spacing/overview#spacing-scale

https://www.carbondesignsystem.com/guidelines/spacing/overview#layout-scale

Changelog

New

  • $spacing-13 to match the largest layout variable

Changed

  • Changed all internal references of $layout to $spacing (seemed to only be in Data Table styles)
  • Added deprecation notes to old layout variables
  • Added comment to remove layout from theme package in v11

Testing / Reviewing

  • Ensure DataTable renders as expected
  • Try using $spacing-13

@tw15egan tw15egan requested review from a team as code owners March 10, 2021 22:43
@tw15egan tw15egan requested review from joshblack, emyarod, a team and kingtraceyj and removed request for a team March 10, 2021 22:43
@tw15egan tw15egan changed the title Layout to spacing feat(spacing): change layout variables to spacing Mar 10, 2021
@netlify
Copy link

netlify bot commented Mar 10, 2021

Deploy preview for carbon-elements ready!

Built with commit d77391f

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

@netlify
Copy link

netlify bot commented Mar 10, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit d77391f

https://deploy-preview-8063--carbon-components-react.netlify.app

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

@kingtraceyj
Copy link
Member

@tw15egan looks good from a visual stand point. should we update the docs page on the website before you merge or do you think we could do that in the next few weeks.

@tw15egan
Copy link
Collaborator Author

We can just hold off on merging this until we update the website so we're synced between the website and whats in code 👍🏻

Copy link
Member

@kingtraceyj kingtraceyj 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! 💥

@kodiakhq kodiakhq bot merged commit 48e09a0 into carbon-design-system:main Mar 26, 2021
@tw15egan tw15egan deleted the layout-to-spacing branch March 3, 2022 16:13
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.

Update spacing scale and deprecate our layout scale
4 participants