️(frontend) fix form labels and autocomplete wiring

Ensure labels map to inputs and avoid empty describedby output
This commit is contained in:
Cyril
2026-01-30 14:49:01 +01:00
parent 88a1136dfd
commit 716e11b5b3
3 changed files with 9 additions and 5 deletions

View File

@@ -8,6 +8,10 @@ and this project adheres to
## [Unreleased]
### Changed
- ♿️(frontend) fix form labels and autocomplete wiring #932
## [1.5.0] - 2026-01-28
### Changed

View File

@@ -446,16 +446,14 @@ export const Join = ({
type="text"
onChange={saveUsername}
label={t('usernameLabel')}
aria-label={t('usernameLabel')}
id="input-name"
defaultValue={username}
validate={(value) => !value && t('errors.usernameEmpty')}
wrapperProps={{
noMargin: true,
fullWidth: true,
}}
labelProps={{
center: true,
}}
autoComplete="name"
maxLength={50}
/>
</VStack>

View File

@@ -138,7 +138,9 @@ export const Field = <T extends object>({
const LabelAndDescription = (
<>
<StyledLabel {...props.labelProps}>{label}</StyledLabel>
<FieldDescription slot="description">{description}</FieldDescription>
{description ? (
<FieldDescription slot="description">{description}</FieldDescription>
) : null}
</>
)
const RACFieldErrors = (