canonical / react-components

A set of components based on Vanilla Framework
https://canonical.github.io/react-components
92 stars 51 forks source link

fix: input label without specifying id #1012

Closed petermakowski closed 7 months ago

petermakowski commented 7 months ago

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.

QA steps

Fixes

Fixes: https://github.com/canonical/react-components/issues/1011

Screenshots

Notes

webteam-app commented 7 months ago

Demo starting at https://react-components-1012.demos.haus