fix(radio) : aligne la zone inline du RadioGroup sur le champ select (h-12)

This commit is contained in:
2026-06-24 16:38:51 +02:00
parent 06f9b0218a
commit 8d7abc3406
2 changed files with 3 additions and 3 deletions
@@ -88,9 +88,9 @@ describe('MalioRadioGroup', () => {
expect(wrapper.get('[role="radiogroup"]').attributes('aria-labelledby')).toBe(legendId) 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}) 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', () => { it('accepte des radios via le slot par défaut', () => {
+1 -1
View File
@@ -138,7 +138,7 @@ provide(radioGroupContextKey, {
const contentClass = computed(() => const contentClass = computed(() =>
props.inline 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', : 'flex flex-col gap-y-1',
) )