Fix accessibility issues flagged by axe (#9452)

This commit is contained in:
Jacob Herrington 2020-07-24 09:21:28 -05:00 committed by GitHub
parent a5b26b3425
commit cd11ebefb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
<h1 class="fw-heavy fs-3xl mod-center-heading">
Mod Center
</h1>
<nav class="mod-center--nav">
<nav class="mod-center--nav" aria-label="Mod center inbox navigation">
<h3 class="fw-bold fs-s mod-center--nav__title">
Inbox
</h3>
@ -23,7 +23,7 @@
</a>
</div>
</nav>
<nav class="mod-center--nav">
<nav class="mod-center--nav" aria-label="Mod center resources navigation">
<h3 class="fw-bold fs-s mod-center--nav__title">
Resources
</h3>

View file

@ -2,22 +2,22 @@
<%= javascript_packs_with_chunks_tag "modCenter", defer: true %>
<div id="moderation-page"></div>
<div id="moderation-page" aria-hidden="true"></div>
<% if current_user&.trusted %>
<div class="crayons-layout crayons-layout--2-cols" id="mod-center">
<%= render "moderations/mod_sidebar_left" %>
<div class="mod-index-container articles-list crayons-layout__content">
<header class="mod-index-header">
<div class="mod-index-header">
<h2 class="tag-view fs-3xl fw-bold lh-base">
<%= @tag ? "##{@tag.name}" : "All topics" %>
</h2>
</header>
<header class="mod-index-list-header lh-tight">
</div>
<div class="mod-index-list-header lh-tight">
<h2 class="fs-xs fw-medium">Post</h2>
<h2 class="fs-xs fw-medium">Author</h2>
<h2 class="fs-xs fw-medium">Date</h2>
</header>
</div>
<main class="mod-index-list" id="mod-index-list" data-articles="<%= @articles %>">
</main>
</div>