@amsterdam/design-system-css
Version:
Stylesheets for all components from the Amsterdam Design System and some general utilities. Use it to apply the visual design of the City of Amsterdam to your HTML elements or non-React components.
21 lines (12 loc) • 849 B
Markdown
<!-- @license CC0-1.0 -->
# Field Set
A component to group related form inputs.
## Guidelines
- Use Field Set when you need to show a relationship between multiple form inputs. For example, you may need to group a set of text inputs into a single Field Set when asking for an address.
- Set `optional` to `true` if all inputs in a Field Set are not required.
- Use `hint` to show a custom hint text.
- There’s no need to add white space between the children of a Field Set. The component does this automatically.
## Relevant WCAG requirements
- [WCAG 1.3.5](https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose.html): Field Set labels the purpose of a group of inputs.
## References
- [Providing a description for groups of form controls using fieldset and legend elements](https://www.w3.org/WAI/WCAG22/Techniques/html/H71)