-
Notifications
You must be signed in to change notification settings - Fork 339
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
Conversation
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.
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?
4b655e4
to
e7ad87f
Compare
src/components/tabs/_tabs.scss
Outdated
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 |
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 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.
e7ad87f
to
6b8adff
Compare
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.
6b8adff
to
956aba6
Compare
See #1330 (comment)
This PR:
govuk-spacing(2)
as bottom margin. For the desktop/js-enabled version of component remove bottom margin and use top and bottom padding instead.Split from #1326