alphagov / govuk-design-system

One place for service teams to find styles, components and patterns for designing government services.
https://www.gov.uk/design-system
MIT License
513 stars 232 forks source link

Expand documentation of fieldset to describe how to have errors and hints #3790

Open romaricpascal opened 6 months ago

romaricpascal commented 6 months ago

What

Add example of how to render errors and hints inside a Fieldset component, especially:

Why

This would help people implement inputs split across multiple fields in a similar fashion as the Date input. Thanks @edwardhorsford for bringing this to our attention.

image

Who needs to work on this

Developers, Tech writers

Who needs to review this

Developers, Tech writers

Done when

romaricpascal commented 2 months ago

This overlaps with: https://github.com/alphagov/govuk-frontend/issues/1166

edwardhorsford commented 2 months ago

Haha past Ed strikes again!