Skip to content

Commit

Permalink
Merge pull request #3373 from projectblacklight/visually-hidden
Browse files Browse the repository at this point in the history
Directly use the visually-hidden class
  • Loading branch information
jcoyne authored Nov 4, 2024
2 parents b6711be + 0825da1 commit 0aaf15f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions app/assets/stylesheets/blacklight/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@

.view-type {
display: inline-block;

.caption {
@extend .visually-hidden !optional;
}
}

.search-input-group {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= link_to url, title: label, class: "#{Array(@classes).join(' ')} view-type-#{ @key.to_s.parameterize } #{"active" if selected?}" do %>
<%= icon %>
<span class="caption"><%= label %></span>
<span class="caption visually-hidden"><%= label %></span>
<% end %>

0 comments on commit 0aaf15f

Please sign in to comment.