Skip to content

Commit

Permalink
Merge pull request #458 from alphagov/dh-700-fix-the-step-by-step-tit…
Browse files Browse the repository at this point in the history
…le-sizing-and-spacing

Changes required when there are only one "part of" step by step navs
  • Loading branch information
DilwoarH authored Aug 2, 2018
2 parents 2a70edc + 877700e commit b26c7ba
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

* Step by step component, Google snippet improvement (PR #461)
* Add tabs component (PR #455)

* Adds styling for singular related step by step navs (PR #458)

## 9.8.0

Expand All @@ -25,7 +25,6 @@
* Allow prioritising taxonomy breadcrumbs (PR #457)
* Contextual breadcrumbs will show taxon based breadcrumbs if prioritise_taxon_breadcrumbs is true (defaults to false if not passed) (PR #457)


## 9.7.0

* Update radio component to use GOV.UK Frontend styles (PR #433)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
padding: 0;
}

.gem-c-step-nav-related--singular {
margin-bottom: $gutter-one-third + 3;

.gem-c-step-nav-related__heading {
@include _core-font-generator(19px, 19px, 19px, 1.4, 1.4, false, bold);
margin-top: $gutter-two-thirds;
}

.gem-c-step-nav-related__pretitle {
margin-bottom: $gutter-one-quarter;
}
}

.gem-c-step-nav-related__pretitle {
display: block;
margin-bottom: $gutter-half;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
pretitle ||= t("govuk_component.step_by_step_nav_related.part_of", default: "Part of")
%>
<% if links.any? %>
<div class="gem-c-step-nav-related" data-module="track-click">
<div
class="gem-c-step-nav-related <%= "gem-c-step-nav-related--singular" if links.length == 1 %>"
data-module="track-click">
<h2 class="gem-c-step-nav-related__heading">
<span class="gem-c-step-nav-related__pretitle"><%= pretitle %></span>
<% if links.length == 1 %>
Expand Down

0 comments on commit b26c7ba

Please sign in to comment.