ensure home and sign up links in sidebar are announced once to screen reader users (#13231)
This commit is contained in:
parent
54c6aa484d
commit
e8098c8e5c
1 changed files with 2 additions and 2 deletions
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
<nav class="mb-6 <% unless user_signed_in? %>mt-4<% end %>" id="sidebar-nav" aria-label="Primary sidebar nav">
|
<nav class="mb-6 <% unless user_signed_in? %>mt-4<% end %>" id="sidebar-nav" aria-label="Primary sidebar nav">
|
||||||
<a href="<%= root_path %>" class="crayons-link crayons-link--block">
|
<a href="<%= root_path %>" class="crayons-link crayons-link--block">
|
||||||
<%= inline_svg_tag("twemoji/house.svg", aria: true, class: "crayons-icon crayons-icon--default", title: "Home") %>
|
<%= inline_svg_tag("twemoji/house.svg", class: "crayons-icon crayons-icon--default", aria_hidden: true) %>
|
||||||
Home
|
Home
|
||||||
</a>
|
</a>
|
||||||
<% unless user_signed_in? %>
|
<% unless user_signed_in? %>
|
||||||
<a href="<%= sign_up_path %>" class="crayons-link crayons-link--block fw-bold">
|
<a href="<%= sign_up_path %>" class="crayons-link crayons-link--block fw-bold">
|
||||||
<%= inline_svg_tag("twemoji/handshake.svg", aria: true, class: "crayons-icon crayons-icon--default", title: "Sign In/Up") %>
|
<%= inline_svg_tag("twemoji/handshake.svg", class: "crayons-icon crayons-icon--default", aria_hidden: true) %>
|
||||||
Sign In/Up
|
Sign In/Up
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue