Skip to content

Commit

Permalink
Make the close icon on banners more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Aug 14, 2023
1 parent 7912b76 commit e6a8b40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,11 @@ body.small-nav {
display: block;
width: $sidebarWidth;
}

button.btn-close {
background-color: rgba(255, 255, 255, 0.5);
opacity: 1.0;
}
}

#map {
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_banner.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% unless (banner = next_banner()).nil? %>
<%= link_to (image_tag banner[:img], :srcset => banner[:srcset], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %>
<button type="button" class="btn-close <%= "btn-close-white" if banner[:dark] %> position-absolute top-0 end-0 p-4" id="<%= banner_cookie(banner[:id]) %>" aria-label="<%= t("javascripts.close") %>"></button>
<button type="button" class="btn-close <%= "btn-close-white" if banner[:dark] %> position-absolute top-0 end-0 m-4" id="<%= banner_cookie(banner[:id]) %>" aria-label="<%= t("javascripts.close") %>"></button>
<% end %>

0 comments on commit e6a8b40

Please sign in to comment.