Skip to content

Commit

Permalink
Merge pull request #3388 from projectblacklight/3375-title-link
Browse files Browse the repository at this point in the history
have header title/subtitle link to home page
  • Loading branch information
dnoneill authored Jan 9, 2025
2 parents b324cd0 + 4458895 commit fb0768e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions app/assets/stylesheets/spotlight/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,16 @@
width: 1px;
}
}

.link-unstyled {
&,
&:visited,
&:hover,
&:active,
&:focus,
&:active:hover {
color: inherit;
text-decoration: none;
font-weight: inherit;
}
}
6 changes: 4 additions & 2 deletions app/components/spotlight/title_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<div class="container site-title-container">
<div class="site-title-wrapper">
<%= title %>
<%= subtitle %>
<a href="<%= helpers.current_exhibit ? helpers.spotlight.exhibit_path(helpers.current_exhibit) : helpers.spotlight.exhibits_path %>" class="link-unstyled">
<%= title %>
<%= subtitle %>
</a>
</div>
</div>

0 comments on commit fb0768e

Please sign in to comment.