Closed contolini closed 6 days ago
We should fix this. There may be consequences to this depending on whether we depend on the current <legend>
structure. I'll add it to our internal backlog.
This needs investigation to see if we are depending in some way on this broken pattern, and if we are, refactoring so that the pattern is both accessible and works as intended. @anselmbradford will look at this next sprint
Our recommended fieldset pattern involves a
<legend>
element outside the<fieldset>
element. This is invalid, the legend needs to be a child of the fieldset.See https://validator.w3.org/nu/?doc=https%3A%2F%2Fcfpb.github.io%2Fdesign-system%2Fcomponents%2Ffieldsets