Skip to content

Commit 078eea9

Browse files
committed
accessibility, fixed heading labels, missing lang attr
1 parent e4bad05 commit 078eea9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

app/views/layouts/application.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<title><%= content_for?(:title) ? content_for(:title) : 'Early Arrivals Records Search (EARS)' %></title>
55
<%= stylesheet_link_tag :application %>
@@ -8,11 +8,11 @@
88
</head>
99
<body>
1010
<div class="container">
11-
<%= link_to image_tag(asset_path('nara.jpg'), alt: 'Chinese Immigration to the United States collection home'), "https://web.archive.org/web/20220124061848/https://bancroft.berkeley.edu/collections/chinese-immigration-to-the-united-states-1884-1944/index.html" %>
11+
<%= link_to image_tag(asset_path('nara.jpg'), alt: 'Chinese Immigration to the United States collection home'), "https://web.archive.org/web/20220124061848/https://bancroft.berkeley.edu/collections/chinese-immigration-to-the-united-states-1884-1944/index.html", aria: { label: 'Open Chinese Immigration to the United States collection home' } %>
1212
</div>
1313
<div class="container">
14-
<h2 class="display-3">The Early Arrivals Records Search (EARS)</h2>
15-
<h4>A dataset from Investigation Arrival Case Files, San Francisco and Hawaii, Records of the U.S. Immigration and Naturalization Service, Record Group 85, National Archives at San Francisco.</h3>
14+
<h1 class="display-3">The Early Arrivals Records Search (EARS)</h1>
15+
<p>A dataset from Investigation Arrival Case Files, San Francisco and Hawaii, Records of the U.S. Immigration and Naturalization Service, Record Group 85, National Archives at San Francisco.</p>
1616
</div>
1717

1818
<main>

app/views/search_casefiles/_form.html.erb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
<% end %>
88
</p>
99

10-
11-
<%= f.submit %>
12-
10+
<%= f.submit 'Search', aria: { label: 'Search case files' } %>
1311

1412
<% end %>
1513

0 commit comments

Comments
 (0)