Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Conversation

@yeelan0319
Copy link
Contributor

BREAKING CHANGE in css custom properties and sass variables.

@yeelan0319 yeelan0319 added this to the Layout Improvement milestone Jun 6, 2017
@traviskaufman
Copy link
Contributor

@yeelan0319 FYI that commit message needs to be formatted as BREAKING CHANGE: (note the :) and needs to specifically detail what each breaking change is and how current code can be updated to match the new code.

@yeelan0319
Copy link
Contributor Author

yeelan0319 commented Jun 6, 2017

Thanks for pointing that out. I will look for some examples, I know it must be documented somewhere.

@yeelan0319 yeelan0319 force-pushed the feat/layout-improvement branch from 794b508 to 0dd2629 Compare June 6, 2017 18:47
@yeelan0319
Copy link
Contributor Author

I changed the commit message. PTAL

@codecov-io
Copy link

codecov-io commented Jun 6, 2017

Codecov Report

Merging #795 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #795   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files          65       65           
  Lines        2767     2767           
  Branches      318      318           
=======================================
  Hits         2765     2765           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0471f1f...d0f8999. Read the comment docs.

@traviskaufman traviskaufman self-requested a review June 6, 2017 19:23
Copy link
Contributor

@traviskaufman traviskaufman left a comment

Choose a reason for hiding this comment

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

💎 Looks great!

--mdc-layout-grid-margin: 40px;
--mdc-layout-grid-gutter: 16px;
--mdc-layout-grid-margin-desktop: 40px;
--mdc-layout-grid-gutter-tablet: 16px;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: perhaps we should also show --mdc-layout-grid-gutter-phone being used here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing!

BREAKING CHANGE: the css custom properties for customize margins and gutters are exposed in format of `mdc-layout-grid-margin-#{$size}`, where valid sizes are `desktop`, `tablet` and `phone`. The old name `mdc-layout-grid-margin` and `mdc-layout-grid-gutter` is no longer available in the new version. Sass variables change from single numeric value to Sass map to accomendate margins and gutters for different screens as well. Visually, the default value of margins and gutters change from 16px to 24px on desktop, while remain the same on tablet and mobile.
@yeelan0319 yeelan0319 force-pushed the feat/layout-improvement branch from 0dd2629 to d0f8999 Compare June 6, 2017 22:31
@yeelan0319 yeelan0319 merged commit 99d2bbd into master Jun 6, 2017
@yeelan0319 yeelan0319 deleted the feat/layout-improvement branch June 6, 2017 22:32
@yeelan0319 yeelan0319 restored the feat/layout-improvement branch June 6, 2017 22:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants