Skip to content

Commit f47b78b

Browse files
committed
stories(carousel): fix input story after refactoring
1 parent a556fa3 commit f47b78b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

stories/carousel.stories.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -293,22 +293,26 @@ export const InputsTemplate: Story = {
293293
<style>
294294
igc-carousel {
295295
border-radius: 10px;
296-
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
296+
box-shadow: 0 6px 12px oklch(from #333 l c h / 0.1);
297+
border: 1px solid var(--ig-gray-200);
297298
max-width: 75%;
298299
margin-inline: auto;
299300
height: 350px;
300301
}
302+
301303
igc-carousel-slide {
302-
display: flex;
303-
align-items: center;
304-
justify-content: center;
305-
max-width: 75%;
304+
display: grid;
305+
place-items: center stretch;
306306
margin-inline: auto;
307-
padding-block: 8px;
307+
padding-inline: 96px;
308+
padding-block-start: 8px;
309+
padding-block-end: 32px;
308310
}
309-
igc-carousel-slide > * {
310-
margin-block: 8px;
311+
312+
igc-carousel-slide > igc-button {
313+
max-width: fit-content;
311314
}
315+
312316
igc-carousel-slide div {
313317
text-align: center;
314318
}
@@ -329,7 +333,8 @@ export const InputsTemplate: Story = {
329333
>
330334
<igc-carousel-slide>
331335
<igc-input type="text" placeholder="Username">
332-
<span slot="prefix">🐱‍💻</span>
336+
<span slot="prefix">🐱</span>
337+
<span slot="prefix">💻</span>
333338
</igc-input>
334339
<igc-textarea label="Leave your comment">
335340
<span slot="prefix">💬</span>

0 commit comments

Comments
 (0)