This PR modifies the Input component to automatically generate and assign a unique id when one is not provided. This ensures correct label-input association as per accessibility standards.
fix: input label without specifying id
replace instances of soon-to-be-deprecated .toHaveErrorMessage with .toHaveAccessibleErrorMessage
QA steps
[ ] Import the Input component from @canonical/react-components.
[ ] Render the Input component without specifying an id.
Done
This PR modifies the Input component to automatically generate and assign a unique id when one is not provided. This ensures correct label-input association as per accessibility standards.
.toHaveErrorMessage
with.toHaveAccessibleErrorMessage
QA steps
Fixes
Fixes: https://github.com/canonical/react-components/issues/1011
Screenshots
Notes