From d842bf955d50ac4b6fb46f418912b51bb2716a3b Mon Sep 17 00:00:00 2001 From: tristan Date: Mon, 8 Jun 2026 15:28:27 +0200 Subject: [PATCH] =?UTF-8?q?feat(ui)=20:=20dimensions=20par=20d=C3=A9faut?= =?UTF-8?q?=20du=20bouton=20180x38?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MalioButton : w-[180px] / h-[38px] (étaient w-[200px] / h-[40px]) Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 1 + app/components/malio/button/Button.test.ts | 4 ++-- app/components/malio/button/Button.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71ae60f..af02bfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ Liste des évolutions de la librairie Malio layer UI * [#MUI-41] InputEmail : sanitisation à la saisie (suppression des espaces, option `lowercase`) ### Changed +* MalioButton : dimensions par défaut `w-[180px]` / `h-[38px]` (étaient `w-[200px]` / `h-[40px]`). * DataTable : tailles par défaut revues — texte header `16px` (était `20px`), texte body `14px` (était `18px`), sélecteur de lignes et boutons de pagination (Prev / numéros / Next) alignés à `30px` de haut, padding de `12px` entre le bas du tableau et la barre de pagination. Couleurs inchangées (texte `m-primary`, bordures noires). * Select : nouvelle prop `fieldClass` pour surcharger les classes du field (notamment la hauteur `h-[40px]` jusqu'ici codée en dur) ; utilisée par le DataTable pour passer le sélecteur de perPage à `30px`. * [#MUI-35] Refonte du composant drawer : slots `#header`/`#footer`, prop `side` (droite/gauche), `dismissable`, `closeOnEscape`, classes d'override, focus-trap, scroll-lock et fermeture au clavier. **Breaking** : la prop `title` est remplacée par le slot `#header`. diff --git a/app/components/malio/button/Button.test.ts b/app/components/malio/button/Button.test.ts index 972bd1b..b66638b 100644 --- a/app/components/malio/button/Button.test.ts +++ b/app/components/malio/button/Button.test.ts @@ -162,8 +162,8 @@ describe('MalioButton', () => { it('applies correct dimensions', () => { const wrapper = mountComponent() - expect(wrapper.get('button').classes()).toContain('w-[200px]') - expect(wrapper.get('button').classes()).toContain('h-[40px]') + expect(wrapper.get('button').classes()).toContain('w-[180px]') + expect(wrapper.get('button').classes()).toContain('h-[38px]') }) it('applies font styles', () => { diff --git a/app/components/malio/button/Button.vue b/app/components/malio/button/Button.vue index 397eb83..11037c9 100644 --- a/app/components/malio/button/Button.vue +++ b/app/components/malio/button/Button.vue @@ -84,7 +84,7 @@ const variantClasses = computed(() => { const mergedButtonClass = computed(() => twMerge( - 'inline-flex w-[200px] h-[40px] items-center justify-center gap-1 p-[10px] rounded-md text-base font-bold leading-[150%] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-m-primary/50', + 'inline-flex w-[180px] h-[38px] items-center justify-center gap-1 p-[10px] rounded-md text-base font-bold leading-[150%] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-m-primary/50', variantClasses.value, props.buttonClass, ),