-
Notifications
You must be signed in to change notification settings - Fork 335
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
Update tabs spacing #886
Update tabs spacing #886
Conversation
src/components/tabs/tabs.yaml
Outdated
@@ -8,7 +8,7 @@ examples: | |||
panel: | |||
html: | | |||
<h2 class="govuk-heading-l">Past day</h2> | |||
<table class="govuk-table"> | |||
<table class="govuk-table govuk-!-margin-bottom-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.
This works, just a question: In the conditional reveal I think we do this to any :last-child
, should we consider doing that here too?
ef50f88
to
1d321d9
Compare
1d321d9
to
f213136
Compare
The padding left and right was as it was so that the text in the first tab vertically aligned with the text (or whatever) inside the panel. This was something @joelanman originally asked me to do. I don't mind the change, but mentioning just in case. |
@adamsilver @joelanman Ok great, sorry for the slight alignment issue (no pun intended). I'll keep the top/bottom margin and check in with Joe on the left and right...makes sense |
8ba13b5
to
2ce39d8
Compare
Actually this is the right thing to do, have updated this to only affect the top/bottom relationship :) |
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, but needs a changelog entry.
2ce39d8
to
d159925
Compare
d159925
to
e2523fc
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.
👍
Thanks @dashouse 👍 |
Updates internal padding of tab content in the Tabs component (backlog alphagov/govuk-design-system-backlog#100)
Before
After
This required margin to be defined on the tab container at mobile breakpoint to separate content.
I also increased the space below the contents menu.
Have also used the
:last-child
solution from conditional radios and checkboxes to remove the margin-bottom of the last item that is inside the container to avoid double margin.