️(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] ## [Unreleased]
### Changed
- ♿️(frontend) fix form labels and autocomplete wiring #932
## [1.5.0] - 2026-01-28 ## [1.5.0] - 2026-01-28
### Changed ### Changed

View File

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

View File

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