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

Spacing of tabs list updated to be more inline with similar lists on GOV.UK and the Design System #1330

Merged
merged 3 commits into from
May 10, 2019

Conversation

hannalaakso
Copy link
Member

@hannalaakso hannalaakso commented May 9, 2019

See #1330 (comment)

This PR:

  • Adjusts the padding/margin so that with the the list version of component that’s used on mobile and no-js we use have govuk-spacing(2) as bottom margin. For the desktop/js-enabled version of component remove bottom margin and use top and bottom padding instead.
  • Adjusts bottom margin of list item so that it’s applied on no-js version
  • Adds some more spacing under the tabs title.

Split from #1326

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1330 May 9, 2019 15:43 Inactive
@hannalaakso hannalaakso changed the title Improve tabs heading spacing on mobile and no-js view Improve tabs heading spacing on mobile and when Javascript is disabled May 9, 2019
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1330 May 9, 2019 16:09 Inactive
@hannalaakso hannalaakso added this to the v3.0.0 milestone May 10, 2019
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.

Thanks for splitting this out 👍

I wonder how relevant the fact that this 'makes it consistent with the Design System' actually is – I suspect aligning the two wasn't actually our motivation, it's just that the spacing in the navigation in the Design System worked better so we adopted the same spacing here too?

I'm not sure people reading the changelog would understand why consistency with styles in the Design System is important, and the comment feels like it's likely to go out of date.

Thoughts?

@dashouse
Copy link

Spacing of list updated to be more inline with similar lists on GOV.UK and the Design System.

GOV.UK Example
Screen Shot 2019-05-10 at 10 54 43

GOV.UK Design System example
Screen Shot 2019-05-10 at 10 55 07

@hannalaakso hannalaakso changed the title Improve tabs heading spacing on mobile and when Javascript is disabled Spacing of list updated to be more inline with similar lists on GOV.UK and the Design System May 10, 2019
@hannalaakso hannalaakso changed the title Spacing of list updated to be more inline with similar lists on GOV.UK and the Design System Spacing of tabs list updated to be more inline with similar lists on GOV.UK and the Design System May 10, 2019
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1330 May 10, 2019 10:12 Inactive
padding-top: govuk-spacing(2);
padding-bottom: govuk-spacing(2);
// Use bottom margin on mobile and when JS is not enabled.
// Consistent with what we do with on-page navigation in GOV.UK Design
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 comment can probably just be removed? I don't think we'd have written it if we'd built the component this way from scratch, and I think it's likely just to go out of date.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1330 May 10, 2019 14:58 Inactive
Split from #1326

This amends the tab headings spacing on mobile and no-js view to be
consistent with how we present the navigation on the Design System:

Adjusts the padding/margin so that with the the list version of component
that’s used on mobile and no-js we use have govuk-spacing(2) as bottom margin,
consistent with what we do with on-page navigation in GOV.UK Design System when
it's displayed as a list. For the desktop/js-enabled version of component remove
bottom margin and use top and bottom padding instead.

Also adjusts bottom margin of list item so that it’s applied on no-js version
and add some more spacing under the tabs title.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants