You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the fieldset component will set itself in error if one of the child inputs inside it is in error. This is not correct - it should only be in error if the fieldset as a whole is in error.
The result is that the left red error bar extends across the entire fieldset, rather than just the field that is in error.
You could possibly say that this is something to be decided on a question by question basis - but then this shouldn't be the default as it's not how the native components work.
It's not in the docs, but reading the package source, I see you can use <Fieldset disableErrorLine="false"> to explicitly disable this.
Incorrect:
Correct:
There's no example of this in the NHS design system, but it's covered in the GOV.UK design system:
The text was updated successfully, but these errors were encountered:
It seems like the fieldset component will set itself in error if one of the child inputs inside it is in error. This is not correct - it should only be in error if the fieldset as a whole is in error.
The result is that the left red error bar extends across the entire fieldset, rather than just the field that is in error.
You could possibly say that this is something to be decided on a question by question basis - but then this shouldn't be the default as it's not how the native components work.
It's not in the docs, but reading the package source, I see you can use
<Fieldset disableErrorLine="false">
to explicitly disable this.Incorrect:
Correct:
There's no example of this in the NHS design system, but it's covered in the GOV.UK design system:
The text was updated successfully, but these errors were encountered: