* delete alt attribute on span * delete role checkbox on button - add type button * delete wrong aria label * sidebar-nav as class not ID * delete duplicate attr class on single story * delete duplicate attr class sidebar nav * Revert "delete role checkbox on button - add type button" This reverts commit 456fa676ff4457ffa724e9a07a3f123149dc5f39. * delete role checkbox and modidy spec login modal js * no need for name in cypress test showloginmodal anymore * add attr data-test-id * replace attr defer with DOMContentLoaded event * delete useless class * better a11y approach for button and cypress tests Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * better a11y approach for button and cypress tests Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * discussion_r612278777 : change initialize article reactions js * revert replacing `const` with `let` Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * revert replacing `const` with `let` Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * apply `aria-hidden` on all reaction svg Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * keep original text `Saved` for bookmark button Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * fix missing aria-label on load - reaction button * Revert "replace attr defer with DOMContentLoaded event" This reverts commit db6a7eec051c443c18c17e23cf331132b222011f. Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
32 lines
1.4 KiB
Text
32 lines
1.4 KiB
Text
<% nav_links = NavigationLink.all.ordered.to_a %>
|
|
|
|
<nav class="mb-6 <% unless user_signed_in? %>mt-4<% end %>" aria-label="Primary sidebar nav">
|
|
<a href="<%= root_path %>" class="crayons-link crayons-link--block">
|
|
<%= inline_svg_tag("twemoji/house.svg", class: "crayons-icon crayons-icon--default", aria_hidden: true) %>
|
|
Home
|
|
</a>
|
|
<% unless user_signed_in? %>
|
|
<a href="<%= sign_up_path %>" class="crayons-link crayons-link--block fw-bold">
|
|
<%= inline_svg_tag("twemoji/handshake.svg", class: "crayons-icon crayons-icon--default", aria_hidden: true) %>
|
|
Sign In/Up
|
|
</a>
|
|
<% end %>
|
|
<div class="sidebar-navigation-links spec-sidebar-navigation-links">
|
|
<% nav_links[0..4].each do |link| %>
|
|
<%= render "layouts/sidebar_nav_link", link: link %>
|
|
<% end %>
|
|
|
|
<% if nav_links.length > 5 %>
|
|
<a href="javascript:void(0)" class="crayons-link crayons-link--secondary crayons-link--block crayons-link--block--indented fs-s js-nav-more-trigger">More...</a>
|
|
|
|
<div class="hidden js-nav-more spec-nav-more">
|
|
<% nav_links[5..].each do |link| %>
|
|
<%= render "layouts/sidebar_nav_link", link: link %>
|
|
<% end %>
|
|
<div class="flex justify-around p-4 mt-4 border-solid border-0 border-t-1 border-base-10">
|
|
<%= render partial: "layouts/social_media" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</nav>
|