Skip to content
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

Merged
merged 2 commits into from
Aug 13, 2018
Merged

Conversation

dashouse
Copy link

@dashouse dashouse commented Aug 3, 2018

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.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-938 August 3, 2018 08:12 Inactive
@@ -10,18 +10,17 @@
@include govuk-exports("govuk/component/date-input") {
.govuk-date-input {
@include govuk-clearfix;
font-size: 0;
Copy link
Contributor

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.

Copy link
Contributor

@36degrees 36degrees left a 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.

@NickColley NickColley force-pushed the date-input-component-inline-block branch from 3c32b7a to 4cb5098 Compare August 9, 2018 14:39
@36degrees 36degrees modified the milestones: 1.2.0, [NEXT] Aug 13, 2018
@kr8n3r kr8n3r force-pushed the date-input-component-inline-block branch from 4cb5098 to 2e6e85d Compare August 13, 2018 08:26
@kr8n3r
Copy link

kr8n3r commented Aug 13, 2018

resolved CHANGELOG conflict

@kr8n3r
Copy link

kr8n3r commented Aug 13, 2018

merged on behalf of @dashouse

@kr8n3r kr8n3r merged commit 2caf443 into master Aug 13, 2018
@kr8n3r kr8n3r deleted the date-input-component-inline-block branch August 13, 2018 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants