Extract icon_tag helper to reduce repetition

This commit is contained in:
David Heinemeier Hansson
2025-03-29 17:22:51 +01:00
parent 3faea3c39c
commit de6f782ca3
44 changed files with 94 additions and 90 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
</div>
<button type="submit" id="log_in" class="btn btn--reversed center">
<%= image_tag "arrow-right.svg", aria: { hidden: true }, size: 24 %>
<%= icon_tag "arrow-right" %>
<span class="for-screen-reader">Sign in</span>
</button>
<% end %>