Skip to content

Commit 3f860de

Browse files
committed
fixs review anais
1 parent 10ecea9 commit 3f860de

File tree

8 files changed

+33
-13
lines changed

8 files changed

+33
-13
lines changed

components/Molecules/ItemHeader/ItemHeader.stories.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ export default {
55
};
66

77
export const Base = {
8-
render: (args) => ItemHeader(args),
8+
render: (args) =>
9+
`<div class='h-[78px]'><ul class="flex h-full">${ItemHeader(args)}</ul></div>`,
910
args: {
10-
customText: "Item menu",
11-
href: "",
12-
},
11+
customText: 'Item menu',
12+
href: ''
13+
}
1314
};

components/Molecules/OrderTag/OrderTag.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
margin-right: rem-convert(6px);
1616
}
1717

18+
&--withoutChip {
19+
&:before {
20+
content: none;
21+
}
22+
}
23+
1824
&--informative {
1925
background-color: var(--informative-lightest);
2026
border: 1px solid var(--informative);

components/Molecules/OrderTag/OrderTag.stories.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,30 @@ export default {
77
export const Base = {
88
render: (args) => OrderTag(args),
99
args: {
10-
customText: "Commande validée",
10+
customText: 'Commande validée',
11+
withoutChip: false
1112
},
1213
argTypes: {
1314
variant: {
14-
options: ['informative', 'success', 'validated', 'grey', 'error', 'processing', 'warning', 'vermillon'],
15-
control: { type: 'select' },
15+
options: [
16+
'informative',
17+
'success',
18+
'validated',
19+
'grey',
20+
'error',
21+
'processing',
22+
'warning',
23+
'vermillon'
24+
],
25+
control: { type: 'select' }
1626
},
1727
type: {
1828
options: ['outline', 'minimal'],
19-
control: { type: 'select' },
29+
control: { type: 'select' }
2030
}
21-
},
31+
}
2232
};
2333

24-
2534
export const Variants = {
2635
render: () => `
2736
<h2 class="font-bold text-lg">Status Commande</h2>
@@ -62,4 +71,4 @@ export const Variants = {
6271
validated :
6372
${OrderTag({ customText: 'Epuisé', variant: 'error', type: 'minimal' })}</div>
6473
`
65-
}
74+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{% set customText = customText|default('') %}
22
{% set variant = variant|default('informative') %}
33
{% set type = type|default('outline') %}
4+
{% set withoutChip = withoutChip|default(false) %}
45

56

67
{% set classes = '' %}
78
{% set classes = classes ~ ' OrderTag--' ~ variant %}
89
{% set classes = classes ~ ' OrderTag--' ~ type %}
10+
{% if withoutChip %}{% set classes = classes ~ ' OrderTag--withoutChip' %}{% endif %}
911

1012
<span class="OrderTag{{ classes }}">{{ customText }}</span>

components/Molecules/Tooltip/tooltip.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
width: max-content;
1818
background-color: var(--black);
1919
color: var(--white);
20-
text-align: center;
2120
padding: rem-convert(22px) rem-convert(34px) rem-convert(22px)
2221
rem-convert(20px);
2322
border-radius: 8px;

components/Organisms/Card/PickupPoint/pickupPoint.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
@apply h4;
9898
font-weight: 700;
9999
color: var(--black);
100+
margin-bottom: rem-convert(16px);
100101
}
101102
&-address {
102103
@apply paragraph-2;

components/Organisms/ProductCard/ProductCard.stories.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default {
1111
};
1212

1313
export const standard = {
14-
render: (args) => Standard(args),
14+
render: (args) =>
15+
`<div class='max-w-[187px] sm:max-w-[340px] lg:max-w-[400px]'>${Standard(args)}</div>`,
1516
args: {
1617
productTitle: 'Nom du produit',
1718
secondaryTitle: 'Titre secondaire',

components/Organisms/SimilarContentCard/similarContentCard.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
@apply paragraph-2;
1717
font-weight: 700;
1818
color: var(--black);
19+
margin-bottom: rem-convert(8px);
1920
}
2021
&-footer {
2122
@apply paragraph-6;

0 commit comments

Comments
 (0)