Skip to content

Commit 3c93260

Browse files
committed
feat(DsfrCard): ✨ ajoute select pour titleTag dans stories
- Faciliter la sélection de la balise de titre dans Storybook - Améliorer l'expérience utilisateur avec un contrôle select au lieu d'un champ texte - Changement du contrôle titleTag de 'text' à 'select' - Ajout des options h1, h2, h3, h4, h5, h6
1 parent 381377b commit 3c93260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/DsfrCard/DsfrCard.stories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export default {
6666
description: 'Indique la largeur de l’image',
6767
},
6868
titleTag: {
69-
control: 'text',
69+
control: 'select',
70+
options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
7071
description:
7172
'Permet de choisir la balise contenant le titre de la carte (h3 par défaut',
7273
},

0 commit comments

Comments
 (0)