Move main <h1> tag inside main header
A <header> tag is the natural place to have headings. Since we already had the logo there, IMHO it makes sense to merge both the <h1> tag and the logo together. We were already doing so in the devise layout. From the sceen reader users' point of view, having a link with the text "CONSUL logo" is a bit confusing, since it seems to imply the link will get us to the CONSUL logo. Using the organization name as the text of the link makes more sense. One thing changes, though. Before this commit, the first thing on the page a screen reader user would hear about would be the organization name. Now the language selector and the top links are announced before the organization name is read. That's fine, since the actual first thing these users will hear is the content of the <title> tag, which contains the organization name as well.
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
<body class="<%= yield (:body_class) %>">
|
||||
<%= raw setting["html.per_page_code_body"] %>
|
||||
|
||||
<h1 class="show-for-sr"><%= setting["org_name"] %></h1>
|
||||
|
||||
<div class="wrapper <%= yield (:wrapper_class) %>">
|
||||
<%= render "layouts/header", with_subnavigation: true %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user