Skip to content

Commit 3cd39a7

Browse files
committed
add h1,h2
1 parent b0502ce commit 3cd39a7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@
3838
</head>
3939

4040
<body class="<%= render_body_class %>">
41-
<%
42-
=begin%>
43-
<h1> Main Content </h1>
44-
<%
45-
=end%>
46-
<h1> <%= render_page_title %> </h1>
4741
<nav id="skip-link" aria-label="<%= t('blacklight.skip_links.label') %>">
4842
<%= link_to t('blacklight.skip_links.search_field'), '#search_field', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbolinks: 'false' } %>
4943
<%= link_to t('blacklight.skip_links.main_content'), '#main-container', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbolinks: 'false' } %>
@@ -52,7 +46,8 @@
5246
<div class="ucb_container">
5347
<%= render partial: 'shared/header_navbar' %>
5448
<main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>">
55-
<%= content_for(:container_header) %>
49+
<span class="constraints-label sr-only visually-hidden"><%= t('blacklight.search.filters.title') %></span>
50+
<%= content_for(:container_header)? content_for(:container_header) : "<div class='sr-only visually-hidden-focusable'> <h1> Main Content </h1><h2> Content Section </h2></div>".html_safe %>
5651
<%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>
5752

5853
<div class="row">

0 commit comments

Comments
 (0)