Skip to content

Commit 7983550

Browse files
authored
Merge pull request #368 from MITLibraries/use-accessibility-fixes
Multiple accessibility fixes to USE
2 parents 266ab40 + adc6250 commit 7983550

6 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/assets/stylesheets/partials/_suggestion-panel.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
.panel-type {
1616
color: $color-suggestion-accent-text;
17+
font-family: $base-font;
1718
font-size: 1.4rem;
1819
font-weight: 600;
1920
margin-bottom: 8px;

app/helpers/search_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ def link_to_tab(target, label = nil)
3636
link_to tab_label, results_path(params.permit(:q, :per_page, :booleanType, :tab).merge(tab: clean_target)),
3737
aria: { current: 'page' },
3838
class: 'active tab-link',
39+
role: 'button',
3940
data: { turbo_frame: 'search-results', turbo_action: 'advance' }
4041
else
4142
link_to tab_label, results_path(params.permit(:q, :per_page, :booleanType, :tab).merge(tab: clean_target)),
4243
class: 'tab-link',
44+
role: 'button',
4345
data: { turbo_frame: 'search-results', turbo_action: 'advance' }
4446
end
4547
end

app/views/search/_result.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<p class="eyebrow"><%= result[:eyebrow] %></p>
55
<% end %>
66
<h3 class="record-title">
7-
<span class="sr">Title: </span>
87
<%= link_to_result(result) %>
98
</h3>
109

app/views/search/_result_geo.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<li class="result" data-record-id="<%=result_geo[:identifier]%>">
22
<div class="result-content">
33
<h3 class="record-title">
4-
<span class="sr">Title: </span><%= link_to(result_geo[:title], record_path(result_geo[:identifier])) %>
4+
<%= link_to(result_geo[:title], record_path(result_geo[:identifier])) %>
55
</h3>
66

77
<div class="data-info">

app/views/search/_result_primo.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<p class="eyebrow"><%= result[:eyebrow] %></p>
55
<% end %>
66
<h3 class="record-title">
7-
<span class="sr">Title: </span>
87
<% if result[:links]&.find { |link| link['kind'] == 'full record' } %>
98
<%= link_to(result[:title], result[:links].find { |link| link['kind'] == 'full record' }['url']) %>
109
<% else %>

app/views/tacos/analyze.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div id="hint" aria-live="polite">
33
<aside class="mitlib-suggestion-panel">
44
<div class="panel-content">
5-
<p class="panel-type">Suggested resource</p>
5+
<h2 class="panel-type">Suggested resource</h2>
66
<h3><%= @suggestions['title'] %></h3>
77
<p>
88
<%= link_to(

0 commit comments

Comments
 (0)