From 6d6c067296a4bd1d221c15074b286f39caee953a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 12 Oct 2024 22:15:45 +0200 Subject: [PATCH] Use an empty alt attribute for decorative images This way people using screen readers will know that the image is a decorative one. --- app/views/dashboard/mailer/forward.html.erb | 4 ++-- app/views/dashboard/mailing/index.html.erb | 4 ++-- app/views/dashboard/poster/index.html.erb | 6 +++--- app/views/dashboard/poster/index.pdf.erb | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/views/dashboard/mailer/forward.html.erb b/app/views/dashboard/mailer/forward.html.erb index 553ce766a..3f85b7850 100644 --- a/app/views/dashboard/mailer/forward.html.erb +++ b/app/views/dashboard/mailer/forward.html.erb @@ -5,9 +5,9 @@ - <%= image_tag "quote_before_white.png", style: "max-width: 40px; vertical-align: top;" %> + <%= image_tag "quote_before_white.png", alt: "", style: "max-width: 40px; vertical-align: top;" %>

<%= @proposal.title %>

- <%= image_tag "quote_after_white.png", style: "max-width: 40px; vertical-align: top;" %> + <%= image_tag "quote_after_white.png", alt: "", style: "max-width: 40px; vertical-align: top;" %>

<%= sanitize(t("dashboard.mailer.forward.subtitle")) %>

diff --git a/app/views/dashboard/mailing/index.html.erb b/app/views/dashboard/mailing/index.html.erb index 713f85935..0f3c6c44b 100644 --- a/app/views/dashboard/mailing/index.html.erb +++ b/app/views/dashboard/mailing/index.html.erb @@ -2,9 +2,9 @@
- <%= image_tag "quote_before_white.png" %> + <%= image_tag "quote_before_white.png", alt: "" %>

<%= proposal.title %>

- <%= image_tag "quote_after_white.png" %> + <%= image_tag "quote_after_white.png", alt: "" %>

<%= sanitize(t("dashboard.mailer.forward.subtitle")) %>

diff --git a/app/views/dashboard/poster/index.html.erb b/app/views/dashboard/poster/index.html.erb index bbd988356..e8e7112cd 100644 --- a/app/views/dashboard/poster/index.html.erb +++ b/app/views/dashboard/poster/index.html.erb @@ -6,7 +6,7 @@

<%= t("dashboard.poster.index.poster_title") %>
- <%= image_tag("finger.png") %> + <%= image_tag("finger.png", alt: "") %> <%= t("dashboard.poster.index.poster_subtitle") %>

@@ -25,9 +25,9 @@

<%= t("dashboard.poster.index.support") %>

- <%= image_tag "quote_before_blue.png" %> + <%= image_tag "quote_before_blue.png", alt: "" %>

<%= proposal.title %>

- <%= image_tag "quote_after_blue.png" %> + <%= image_tag "quote_after_blue.png", alt: "" %> diff --git a/app/views/dashboard/poster/index.pdf.erb b/app/views/dashboard/poster/index.pdf.erb index 7c4eaebe1..9a8b0e383 100644 --- a/app/views/dashboard/poster/index.pdf.erb +++ b/app/views/dashboard/poster/index.pdf.erb @@ -11,7 +11,7 @@

<%= t("dashboard.poster.index.poster_title") %>
- <%= wicked_pdf_image_tag("finger.png") %> + <%= wicked_pdf_image_tag("finger.png", alt: "") %> <%= t("dashboard.poster.index.poster_subtitle") %>

@@ -30,9 +30,9 @@

<%= t("dashboard.poster.index.support") %>

- <%= wicked_pdf_image_tag "quote_before_blue.png" %> + <%= wicked_pdf_image_tag "quote_before_blue.png", alt: "" %>

<%= proposal.title %>

- <%= wicked_pdf_image_tag "quote_after_blue.png" %> + <%= wicked_pdf_image_tag "quote_after_blue.png", alt: "" %>