Skip to content

Commit

Permalink
Merge pull request #1148 from alphagov/move-preview-all
Browse files Browse the repository at this point in the history
Make preview all link more prominent
  • Loading branch information
andysellick authored Oct 2, 2019
2 parents e373b37 + ed8d3c9 commit 4404240
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
</div>
</div>

<h2 class="component-doc-h2">How it looks</h2>
<h2 class="component-doc-h2">How it looks
<small>(<a href="<%= component_preview_all_path(@component_doc.id) %>" class="govuk-link">preview all</a>)</small>
</h2>
<%= render "govuk_publishing_components/component_guide/component_doc/preview", component_doc: @component_doc, example: @component_doc.example %>

<h2 class="component-doc-h2">How to call this component</h2>
Expand Down Expand Up @@ -55,9 +57,7 @@

<% if @component_doc.other_examples.any? %>
<div class="examples">
<h2 class="component-doc-h2">Other examples
<small>(<a href="<%= component_preview_all_path(@component_doc.id) %>" class="govuk-link">preview all</a>)</small>
</h2>
<h2 class="component-doc-h2">Other examples</h2>
<% @component_doc.other_examples.each do |example| %>
<div class="component-example">
<h3 class="example-title">
Expand Down

0 comments on commit 4404240

Please sign in to comment.