RockefellerArchiveCenter / styles

Style Library for the Rockefeller Archive Center
https://styles.rockarch.org
MIT License
0 stars 1 forks source link

Adds Storybook components for text and textarea inputs #37

Closed helrond closed 3 years ago

helrond commented 3 years ago

Adds text input and text area inputs, both of which have additional stories for required and invalid state.

Fixes #23

HaSistrunk commented 3 years ago

I think we can just use required for the required fields, and don't have to bother with the aria-required that is currently in the text inputs, unless you had a reason you found for adding that? My understanding is that required has broad SR support.

Also, I believe the aria-describedby attribute is only necessary with an error, so I think it needs to be part of {{#if invalid}}