nypl-design-system
nypl-design-system copied to clipboard
DSD-1582: better association between the SearchBar's helper text and input element
Fixes JIRA ticket DSD-1582
This PR does the following:
- Updates the
TextInput
andSearchBar
components to better associate the input element to the entire component's helper text. This is done by overriding theTextInput
's internally generatedaria-describedby
value when there is an explicit value added through thearia-describedby
prop.
How has this been tested?
Storybook
Accessibility concerns or updates
- This was flagged as "Descriptive text is not programmatically associated (major)"
Checklist:
- [ ] I have updated the Storybook documentation accordingly.
- [ ] I have added relevant accessibility documentation for this pull request.
- [ ] All new and existing tests passed.
Front End Review:
- [ ] Review the Vercel preview deployment once it is ready.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
nypl-design-system | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 22, 2024 3:33pm |
Bump for review @jackiequach @7emansell @oliviawongnyc