Skip to content

Commit

Permalink
Merge pull request #886 from alphagov/update-tabs-spacing
Browse files Browse the repository at this point in the history
Update tabs spacing
  • Loading branch information
NickColley authored Jul 16, 2018
2 parents 920e747 + e2523fc commit 8f2fe56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
🔧 Fixes:

- Update details behaviour to remove margin-bottom for all elements

([PR #900](https://github.com/alphagov/govuk-frontend/pull/900))

- Update internal padding of tab content in the tabs component
([PR #886](https://github.com/alphagov/govuk-frontend/pull/886))

## 1.1.0 (feature release)

🆕 New features:
Expand Down
13 changes: 11 additions & 2 deletions src/components/tabs/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
padding: 0;
list-style: none;
@include mq($until: tablet) {
@include govuk-responsive-margin(2, "bottom");
@include govuk-responsive-margin(6, "bottom");
}
}

Expand Down Expand Up @@ -50,6 +50,10 @@
}
}

.govuk-tabs__panel {
@include govuk-responsive-margin(8, "bottom");
}

// JavaScript enabled
.js-enabled {

Expand Down Expand Up @@ -104,12 +108,17 @@
}

.govuk-tabs__panel {
@include govuk-responsive-margin(0, "bottom");
padding-top: govuk-spacing(6);
padding-right: govuk-spacing(4);
padding-bottom: govuk-spacing(2);
padding-bottom: govuk-spacing(6);
padding-left: govuk-spacing(4);
border: 1px solid $govuk-border-colour;
border-top: 0;

& > :last-child {
margin-bottom: 0;
}
}
}

Expand Down

0 comments on commit 8f2fe56

Please sign in to comment.