-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add another messes with govuk error message #152
Comments
Thanks for reporting Mike! If you're happy and have the time to, please feel free to open a PR to fix this. Otherwise I can pick it up when I have some time. Might consider this CSS selector to better target the problematic elements (to try and prevent stepping on the toes of other HTML). .moj-add-another__title + .govuk-form-group {
clear: left;
} |
Even better! I will open a PR then. |
Thanks! Drop a message here if you've any issues :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Description
[Description of the issue]
Steps to Reproduce
govuk-form-group--error
class in the containing form-group if the first input element of the example (https://moj-design-system.herokuapp.com/components/add-another/examples/default)Expected behaviour: [What you expect to happen]
The error should be contained within the confines of the form group.
Actual behaviour: [What happens]
The left red border is expanded to cover the legend as well, while also covering it.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
0.2.2
Additional Information
This is caused because the
.moj-add-another__title
floats thelegend
. Aclear: both
orclear:left
on the firstgovuk-form-group
item would be enough to clear the floating legend:The text was updated successfully, but these errors were encountered: