Skip to content

Commit c75adf1

Browse files
committed
use taghelper for creating h1,h2
1 parent 3cd39a7 commit c75adf1

2 files changed

Lines changed: 5 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
<%= render partial: 'shared/header_navbar' %>
4848
<main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>">
4949
<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 %>
50+
<%= content_tag(:div, class: "sr-only visually-hidden-focusable") do
51+
content_tag(:h1, "Main Content") +
52+
content_tag(:h2, "Section Content")
53+
end %>
5154
<%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>
5255

5356
<div class="row">

0 commit comments

Comments
 (0)