Skip to content

Commit

Permalink
chore(cc-toaster story): remove cc-flex-gap and use CSS instead
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-sanders-cc committed Jun 20, 2023
1 parent 6ea78ea commit 1eb3f77
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/cc-toaster/cc-toaster.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import './cc-toaster.js';
import '../cc-button/cc-button.js';
import '../cc-input-number/cc-input-number.js';
import '../cc-toggle/cc-toggle.js';
import '../cc-flex-gap/cc-flex-gap.js';
import '../cc-block/cc-block.js';
import { html, render } from 'lit';
import { sanitize } from '../../lib/i18n-sanitize.js';
Expand Down Expand Up @@ -37,12 +36,19 @@ export const defaultStory = makeStory(conf, {
.knob {
margin-bottom: 1em;
display: flex;
flex-wrap: wrap;
gap: 1em;
}
.buttons {
flex: 1;
}
.intent-controls {
display: flex;
flex-wrap: wrap;
gap: 1em;
}
.console {
position: relative;
Expand Down Expand Up @@ -188,7 +194,7 @@ export const defaultStory = makeStory(conf, {
<div class="knob">
<cc-block class="buttons">
<p>Click on buttons to trigger a toast</p>
<cc-flex-gap style="--cc-gap: 0.5em;">${intents.map(_renderButton)}</cc-flex-gap>
<div class="intent-controls">${intents.map(_renderButton)}</div>
</cc-block>
<cc-block class="options">
Expand Down

0 comments on commit 1eb3f77

Please sign in to comment.