diff --git a/src/input/Input.tsx b/src/input/Input.tsx index cd7603f..047a7a6 100644 --- a/src/input/Input.tsx +++ b/src/input/Input.tsx @@ -122,6 +122,7 @@ export const InputField = forwardRef< type={type} checked={checked} disabled={disabled} + aria-describedby={description ? id + "-desc" : undefined} {...rest} /> )} @@ -135,7 +136,11 @@ export const InputField = forwardRef< {label} {suffix && {suffix}} - {description &&
{description}
} + {description && ( ++ {description} +
+ )} ); }