carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.85k stars 1.81k forks source link

Move Aspect Ratio code from Grid to Layout #7020

Closed joshblack closed 2 years ago

joshblack commented 4 years ago

Transfer Aspect Ratio code (variables, mixins) from the Grid package over to Layout

Add JavaScript values for aspect ratios and use in Layout package

Original ```scss $carbon--aspect-ratios: ( (16, 9), (9, 16), (2, 1), (1, 2), (4, 3), (3, 4), (1, 1) ); ```
JavaScript ```js const unstable_aspectRatios = [ [16, 9], [9, 16], [2, 1], [1, 2], [4, 3], [3, 4], [1, 1], ]; ```
joshblack commented 4 years ago

cc @photodow would be interested in tackling this 👀

photodow commented 4 years ago

@joshblack yeah, let me see what I can do.