From 8d7abc3406344d3c7786f031f8920ab27cdfe046 Mon Sep 17 00:00:00 2001 From: tristan Date: Wed, 24 Jun 2026 16:38:51 +0200 Subject: [PATCH] fix(radio) : aligne la zone inline du RadioGroup sur le champ select (h-12) --- app/components/malio/radio/RadioGroup.test.ts | 4 ++-- app/components/malio/radio/RadioGroup.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/malio/radio/RadioGroup.test.ts b/app/components/malio/radio/RadioGroup.test.ts index 69f586a..6107089 100644 --- a/app/components/malio/radio/RadioGroup.test.ts +++ b/app/components/malio/radio/RadioGroup.test.ts @@ -88,9 +88,9 @@ describe('MalioRadioGroup', () => { expect(wrapper.get('[role="radiogroup"]').attributes('aria-labelledby')).toBe(legendId) }) - it('inline : la zone radios réserve la hauteur d\'un champ', () => { + it('inline : la zone radios réserve la hauteur d\'un champ (h-12 du select)', () => { const wrapper = mountGroup({inline: true}) - expect(wrapper.get('[role="radiogroup"]').classes()).toContain('min-h-[2.5rem]') + expect(wrapper.get('[role="radiogroup"]').classes()).toContain('min-h-[3rem]') }) it('accepte des radios via le slot par défaut', () => { diff --git a/app/components/malio/radio/RadioGroup.vue b/app/components/malio/radio/RadioGroup.vue index b8e4552..92ffad0 100644 --- a/app/components/malio/radio/RadioGroup.vue +++ b/app/components/malio/radio/RadioGroup.vue @@ -138,7 +138,7 @@ provide(radioGroupContextKey, { const contentClass = computed(() => props.inline - ? 'flex flex-wrap items-center gap-x-6 min-h-[2.5rem]' + ? 'flex flex-wrap items-center gap-x-6 min-h-[3rem]' : 'flex flex-col gap-y-1', )