diff --git a/app/views/articles/_actions.html.erb b/app/views/articles/_actions.html.erb index 7c601f021..8e59949db 100644 --- a/app/views/articles/_actions.html.erb +++ b/app/views/articles/_actions.html.erb @@ -30,7 +30,7 @@
@@ -40,7 +40,7 @@ class="flex justify-between crayons-link crayons-link--block w-100 bg-transparent border-0" data-postUrl="<%= article_url(@article) %>"> <%= t("views.actions.copy.button") %> - <%= inline_svg_tag("copy.svg", aria_hidden: true, id: "article-copy-icon", class: "crayons-icon mx-2 shrink-0", title: t("views.actions.copy.button")) %> + <%= crayons_icon_tag(:copy, css_class: "mx-2 shrink-0", id: "article-copy-icon", aria_hidden: true, title: t("views.actions.copy.button")) %>
diff --git a/app/views/articles/_reaction_button.html.erb b/app/views/articles/_reaction_button.html.erb index eb62ec4c1..7d88cdf90 100644 --- a/app/views/articles/_reaction_button.html.erb +++ b/app/views/articles/_reaction_button.html.erb @@ -6,11 +6,11 @@ data-category="<%= category %>" title="<%= description %>"> - <%= inline_svg_tag(image_path, aria_hidden: true, class: "crayons-icon") %> + <%= crayons_icon_tag(image_path, aria_hidden: true) %> <% if user_signed_in? # We cannot trigger the action state unless the user is signed in, so no need to render. %> - <%= inline_svg_tag(image_active_path, aria_hidden: true, class: "crayons-icon") %> + <%= crayons_icon_tag(image_active_path, aria_hidden: true) %> <% end %> diff --git a/app/views/articles/_sidebar.html.erb b/app/views/articles/_sidebar.html.erb index e304d394a..c6e990d3c 100644 --- a/app/views/articles/_sidebar.html.erb +++ b/app/views/articles/_sidebar.html.erb @@ -10,7 +10,7 @@
px-1" id="sponsorship-widget">

<%= Settings::General.sponsor_headline %> - <%= inline_svg_tag("twemoji/heart.svg", aria: true, class: "crayons-icon crayons-icon--default ml-1", title: t("views.sponsor.seek")) %> + <%= crayons_icon_tag("twemoji/heart", class: "ml-1", native: true, title: t("views.sponsor.seek")) %>

<%= render partial: "articles/single_sponsor", collection: @sponsorships, as: :sponsorship %> diff --git a/app/views/articles/_single_story.html.erb b/app/views/articles/_single_story.html.erb index 4383b79f2..991852b1d 100644 --- a/app/views/articles/_single_story.html.erb +++ b/app/views/articles/_single_story.html.erb @@ -121,7 +121,7 @@
<% if story.public_reactions_count > 0 %> "> - <%= inline_svg_tag("small-heart.svg", aria: true, width: 24, height: 24, class: "crayons-icon", title: t("views.reactions.summary.title")) %> + <%= crayons_icon_tag("small-heart", title: t("views.reactions.summary.title")) %> <%= t("views.reactions.summary.count_html", count: story.public_reactions_count, start: tag("span", { class: %w[hidden s:inline] }, true), @@ -130,7 +130,7 @@ <% end %> <% if story.comments_count > 0 %> "> - <%= inline_svg_tag("small-comment.svg", aria: true, width: 24, height: 24, class: "crayons-icon", title: t("views.comments.summary.title")) %> + <%= crayons_icon_tag("small-comment", title: t("views.comments.summary.title")) %> <%= t("views.comments.summary.count_html", count: story.comments_count, start: tag("span", { class: %w[hidden s:inline] }, true), @@ -138,7 +138,7 @@ <% else %> "> - <%= inline_svg_tag("small-comment.svg", aria: true, width: 24, height: 24, class: "crayons-icon", title: t("views.comments.summary.title")) %> + <%= crayons_icon_tag("small-comment", title: t("views.comments.summary.title")) %> <% end %> diff --git a/app/views/articles/_sticky_nav.html.erb b/app/views/articles/_sticky_nav.html.erb index 58b457442..458481658 100644 --- a/app/views/articles/_sticky_nav.html.erb +++ b/app/views/articles/_sticky_nav.html.erb @@ -30,7 +30,7 @@

<%= t("views.sticky.trending_html", app: link_to(community_name, app_url)) %> - <%= inline_svg_tag("twemoji/fire.svg", aria: true, class: "crayons-icon crayons-icon--default", title: t("views.sticky.hot")) %> + <%= crayons_icon_tag("twemoji/fire", native: true, title: t("views.sticky.hot")) %>

diff --git a/app/views/articles/_v2_form.html.erb b/app/views/articles/_v2_form.html.erb index 85a30cfd3..fec2e0b61 100644 --- a/app/views/articles/_v2_form.html.erb +++ b/app/views/articles/_v2_form.html.erb @@ -70,7 +70,7 @@
"> - <%= inline_svg_tag("x.svg", aria: true, class: "crayons-icon", title: t("views.editor.close.icon")) %> + <%= crayons_icon_tag(:x, title: t("views.editor.close.icon")) %>