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

fix(aspect-ratio): correct example preview #17171

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 24 additions & 40 deletions packages/grid/examples/preview/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,39 +789,23 @@ const sections = [
<div className="cds--grid">
<div className="cds--row">
<div className="cds--col">
<div className="cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="cds--aspect-ratio--object">
<div className="outside">
<div className="inside">1</div>
</div>
</div>
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">1</div>
</div>
</div>
<div className="cds--col">
<div className="cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="cds--aspect-ratio--object">
<div className="outside">
<div className="inside">1</div>
</div>
</div>
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">1</div>
</div>
</div>
<div className="cds--col">
<div className="cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="cds--aspect-ratio--object">
<div className="outside">
<div className="inside">1</div>
</div>
</div>
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">1</div>
</div>
</div>
<div className="cds--col">
<div className="cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="cds--aspect-ratio--object">
<div className="outside">
<div className="inside">1</div>
</div>
</div>
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">1</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -979,29 +963,29 @@ const sections = [
<div className="cds--grid">
<div className="cds--row">
<div className="cds--col">
<div className="outside">
<div className="inside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="outside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="inside">
1
</div>
</div>
</div>
<div className="cds--col">
<div className="outside">
<div className="inside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="outside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="inside">
1
</div>
</div>
</div>
<div className="cds--col">
<div className="outside">
<div className="inside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="outside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="inside">
1
</div>
</div>
</div>
<div className="cds--col">
<div className="outside">
<div className="inside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="outside cds--aspect-ratio cds--aspect-ratio--1x2">
<div className="inside">
1
</div>
</div>
Expand All @@ -1015,8 +999,8 @@ const sections = [
content: () => (
<div className="cds--grid">
<div className="cds--row">
<div className="cds--col cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="outside">
<div className="cds--col">
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Duis aliquam tempus rutrum. Morbi consequat, mi quis
Expand All @@ -1037,18 +1021,18 @@ const sections = [
</div>
</div>
</div>
<div className="cds--col cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="outside">
<div className="cds--col">
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">1</div>
</div>
</div>
<div className="cds--col cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="outside">
<div className="cds--col">
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">1</div>
</div>
</div>
<div className="cds--col cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="outside">
<div className="cds--col">
<div className="outside cds--aspect-ratio cds--aspect-ratio--2x1">
<div className="inside">1</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/grid/examples/preview/styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

@use '@carbon/styles/scss/grid';
@use '@carbon/styles/scss/components/aspect-ratio';
@include grid.flex-grid();

*,
Expand Down
Loading
Loading