18F/identity-idp

View on GitHub
app/components/block_link_component.html.erb

Summary

Maintainability
Test Coverage
<%= wrapper do %>
  <%= content %>
  <% if new_tab %>
    <span class="usa-sr-only"><%= t('links.new_tab') %></span>
  <% end %>
  <svg
    xmlns="http://www.w3.org/2000/svg"
    viewbox="0 0 5.2 8.91"
    focusable="false"
    aria-hidden="true"
    class="block-link__arrow"
  >
    <path
      d="M5.11 4.66L1 8.82a.36.36 0 01-.21.09.31.31 0 01-.2-.09l-.5-.45a.29.29 0 01-.09-.2A.36.36 0 01.09 8L3.6 4.45.09 1A.36.36 0 010 .74a.31.31 0 01.09-.2L.54.09A.31.31 0 01.74 0 .36.36 0 011 .09l4.11 4.16a.31.31 0 01.09.2.31.31 0 01-.09.21z"
      fill="currentColor"
    ></path>
  </svg>
<% end %>