Skip to content

fix(FormControl, FormSelect, FormCheckInput): set aria-invalid while invalid - #331

Merged
xidedix merged 1 commit into
v5.7from
fix/form-aria-invalid
Oct 27, 2026
Merged

xidedix merged 1 commit into
v5.7from
fix/form-aria-invalid

Conversation

@xidedix

@xidedix xidedix commented Oct 27, 2026

Copy link
Copy Markdown
Member

[valid]="false" on cFormControl, cSelect and cFormCheckInput only added .is-invalid, so screen readers did not announce the field as invalid. The field now gets aria-invalid="true" (not on button-like, color and hidden inputs); once it is no longer invalid, the static value from the template comes back, or the attribute is removed.

…invalid

`[valid]="false"` only added `.is-invalid`, so screen readers did not announce the field as invalid. The field now gets `aria-invalid="true"` (not on button-like, `color` and `hidden` inputs). Once it is no longer invalid, the static value from the template comes back, or the attribute is removed.
@xidedix
xidedix merged commit a61401a into v5.7 Oct 27, 2026
9 checks passed
@xidedix
xidedix deleted the fix/form-aria-invalid branch October 27, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant