Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): Add description to base FormField component (#714)
* added description type * added component to display form field description * added description usage to the form field * refactored formfield tests * added test to find description * updated htype declaration * added aria-describedby, spacing between description and field, and switched to base size * updated snaps * updated how input validation and form are styled and grouped together * updated snaps * updated styling and composition if inline, description and aria-describedby no longer apply when inline * 'descriptionUUID' -> 'descriptionIdentifier' * 'spacing=small' only added to Tag if inline * removed 'renders a field with error' snapshot test as it doesnt provide any value * 'with a placeholder' > 'renders' updated to include 'renders as a label' and removed snapshot portion * 'when readonly' > 'renders' updated to get attribute instead of snapshot * 'when disabled' > 'renders' updated to check for attribute instead of snapshot * 'when loading' > 'should render the spinner' updated to check if in document instead of being an instance of element * 'when autocomplete' changed to check for attribute instead of getting attribute list * removed unneeded expect with 'toHaveBeenCalled' * updated how content spacing occurs, instead of using content, using margin top as to avoid issues with InputGroup
- Loading branch information