File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/DsfrRadioButton Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const onChange = ($event: string) => {
2929 emit (' update:modelValue' , $event )
3030}
3131
32- const ariaLabelledby = computed (() => message .value ? ` ${ props . titleId } messages-${props .titleId }` : props . titleId )
32+ const describedByElement = computed (() => message .value ? ` messages-${props .titleId } ` : undefined )
3333 </script >
3434
3535<template >
@@ -41,7 +41,8 @@ const ariaLabelledby = computed(() => message.value ? `${props.titleId} messages
4141 'fr-fieldset--valid': validMessage,
4242 }"
4343 :disabled =" disabled"
44- :aria-labelledby =" ariaLabelledby"
44+ :aria-labelledby =" titleId"
45+ :aria-describedby =" describedByElement"
4546 :aria-invalid =" ariaInvalid"
4647 :role =" (errorMessage || validMessage) ? 'group' : undefined"
4748 >
You can’t perform that action at this time.
0 commit comments