{ return (
-
+
diff --git a/packages/react/src/components/CardLink/__stories__/CardLink.stories.js b/packages/react/src/components/CardLink/__stories__/CardLink.stories.js index 5c7d5bd5209..94f8e6d79d7 100644 --- a/packages/react/src/components/CardLink/__stories__/CardLink.stories.js +++ b/packages/react/src/components/CardLink/__stories__/CardLink.stories.js @@ -1,5 +1,5 @@ /** - * Copyright IBM Corp. 2016, 2020 + * Copyright IBM Corp. 2016, 2021 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. @@ -56,9 +56,9 @@ export const Default = ({ parameters }) => { const { card, disabled } = parameters?.props?.CardLink ?? {}; return ( -
+
-
+
diff --git a/packages/web-components/.storybook/container.scss b/packages/web-components/.storybook/container.scss index 77d182a6089..4cbcae43614 100644 --- a/packages/web-components/.storybook/container.scss +++ b/packages/web-components/.storybook/container.scss @@ -81,8 +81,18 @@ body { .dds-ce-demo-devenv--simple-grid--content-layout--with-complementary { > * { grid-column: 1 / span 4; + } +} - @include carbon--breakpoint('md') { +@include carbon--breakpoint('md') { + .dds-ce-demo-devenv--simple-grid--card > * { + grid-column: 1 / span 3; + } + .dds-ce-demo-devenv--simple-grid--callout, + .dds-ce-demo-devenv--simple-grid--card-group, + .dds-ce-demo-devenv--simple-grid--content-layout, + .dds-ce-demo-devenv--simple-grid--content-layout--with-complementary { + > * { grid-column: 1 / span 8; } } @@ -93,7 +103,10 @@ body { grid-column: 5 / span 12; } - .dds-ce-demo-devenv--simple-grid--card, + .dds-ce-demo-devenv--simple-grid--card > * { + grid-column: 1 / span 6; + } + .dds-ce-demo-devenv--simple-grid--content-layout { > * { grid-column: 5 / span 8; @@ -109,6 +122,12 @@ body { } } +@include carbon--breakpoint('xlg') { + .dds-ce-demo-devenv--simple-grid--card > * { + grid-column: 1 / span 4; + } +} + .dds-ce-demo-devenv--container--has-card-group, .dds-ce-demo-devenv--container--has-card-group-standalone { padding: 0; diff --git a/packages/web-components/src/components/card/__stories__/card.stories.ts b/packages/web-components/src/components/card/__stories__/card.stories.ts index 7c0fb6454b8..92a2e34d556 100644 --- a/packages/web-components/src/components/card/__stories__/card.stories.ts +++ b/packages/web-components/src/components/card/__stories__/card.stories.ts @@ -102,11 +102,7 @@ export default { decorators: [ story => html`
-
-
- ${story()} -
-
+ ${story()}
`, ],