Skip to content

Commit c7de2af

Browse files
feat(grid): add 3x2 aspect ratio (#8332)
* feat(grid): add 3x2 aspect ratio * Update _mixins.scss * chore(components): update snapshot Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 8180671 commit c7de2af

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/components/src/globals/grid/__tests__/__snapshots__/grid-test.js.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,12 @@ em {
13501350
.bx--aspect-ratio--3x4::before {
13511351
padding-top: 133.33333%; }
13521352
1353+
.bx--aspect-ratio--3x2::before {
1354+
padding-top: 66.66667%; }
1355+
1356+
.bx--aspect-ratio--2x3::before {
1357+
padding-top: 150%; }
1358+
13531359
.bx--aspect-ratio--1x1::before {
13541360
padding-top: 100%; }
13551361

packages/grid/scss/_mixins.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ $carbon--aspect-ratios: (
243243
(1, 2),
244244
(4, 3),
245245
(3, 4),
246+
(3, 2),
247+
(2, 3),
246248
(1, 1)
247249
);
248250

0 commit comments

Comments
 (0)