Skip to content

Commit 12ea523

Browse files
authored
ADA-234, ADA-241: Ensure that the page, or at least one of its frames contains a level-one heading (#63)
* test * add h1,h2 * use taghelper for creating h1,h2 * Add containd_head existing case * remove test span, set h2 specifically for home page
1 parent 99b44c2 commit 12ea523

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ PLATFORMS
524524
aarch64-linux
525525
arm64-darwin-22
526526
x86_64-darwin-22
527+
x86_64-darwin-24
527528
x86_64-linux
528529
x86_64-linux-musl
529530

app/views/layouts/blacklight/base.html.erb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@
4646
<div class="ucb_container">
4747
<%= render partial: 'shared/header_navbar' %>
4848
<main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>">
49-
<%= content_for(:container_header) %>
49+
<%= content_for(:container_header) || content_tag(:div, class: "sr-only visually-hidden") do
50+
if render_page_title == "UC Berkeley GeoData"
51+
content_tag(:h1, render_page_title) + content_tag(:h2, render_page_title + " Categories")
52+
else
53+
content_tag(:h1, render_page_title)
54+
end
55+
end %>
5056
<%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>
5157

5258
<div class="row">

0 commit comments

Comments
 (0)