As a developer, when I use <gcds-fieldset>, I want to be able to customize the size of the heading so that I can use different types depending on the context and situation of the design.
✅ Definition of Done / Outcomes
[ ] Done when tests exist for different sizes (h2, h3, h4)
[ ] Done when storybook has been updated to include new property
[ ] Done when storybook contains examples of the new property
[ ] Done when PR has been approved (not merged nor released yet)
[ ] Requirements documentation is up-to-date with new property as it is the source of truth
📜 Acceptance criteria
[ ] A property named size can be set within <gcds-fieldset>
[ ] The new property can only accept the following tags: h2, h3, h4, otherwise it shows an error in the browser's console
📝 More info
We have originally been recommending to use to wrap radio buttons () and checkboxes (checkbox). Unfortunately, this same HTML element provides multiple purposes such as grouping multiple form components, as well as being the primary label for a group of form choices in radio buttons or checkboxes.
. 🚫 Out of scope
Other parts of the fieldset alignment work have tickets for them and is not within the scope of this ticket.
📇 User story
As a developer, when I use
<gcds-fieldset>
, I want to be able to customize the size of the heading so that I can use different types depending on the context and situation of the design.✅ Definition of Done / Outcomes
📜 Acceptance criteria
size
can be set within<gcds-fieldset>
📝 More info
We have originally been recommending to use to wrap radio buttons () and checkboxes (checkbox). Unfortunately, this same HTML element provides multiple purposes such as grouping multiple form components, as well as being the primary label for a group of form choices in radio buttons or checkboxes.
. 🚫 Out of scope Other parts of the fieldset alignment work have tickets for them and is not within the scope of this ticket.