-
Notifications
You must be signed in to change notification settings - Fork 327
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
Date Input to use inline-block #938
Conversation
@@ -10,18 +10,17 @@ | |||
@include govuk-exports("govuk/component/date-input") { | |||
.govuk-date-input { | |||
@include govuk-clearfix; | |||
font-size: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could do with a comment explaining why it's needed / what it's doing.
d05746b
to
3c32b7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This needs a CHANGELOG entry before it can be approved.
3c32b7a
to
4cb5098
Compare
4cb5098
to
2e6e85d
Compare
resolved CHANGELOG conflict |
merged on behalf of @dashouse |
Update Date Input to use inline block not floats.
When we give support to people wanting to add an element next to an input we often tell them to use
govuk-!-display-inline-block
. It would be good if we followed the same method for components too.This should also make it easier to insert optional separators in between the fields in a future update.
I've also removed the extra 2px padding on the label, no longer needed.