Skip to content

Commit

Permalink
fix(rgaa): change logos to match accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Dec 3, 2024
1 parent c2cf4cb commit d6d7b2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion decidim-core/app/views/layouts/decidim/_logo.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% if organization %>
<%= link_to decidim.root_url(host: organization.host), "aria-label": t("front_page_link", scope: "decidim.accessibility") do %>
<%= link_to decidim.root_url(host: organization.host) do %>
<% if organization.logo.attached? %>
<%= image_tag organization.attached_uploader(:logo).variant_url(:medium), alt: t("logo", scope: "decidim.accessibility", organization: current_organization_name) %>
<% else %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if current_organization.official_img_footer.attached? %>
<%= link_to current_organization.official_url, class: "block mb-6" do %>
<%= image_tag current_organization.attached_uploader(:official_img_footer).url, alt: current_organization_name, class: "max-h-16" %>
<%= image_tag current_organization.attached_uploader(:official_img_footer).url, alt: t("logo", scope: "decidim.accessibility", organization: current_organization_name), class: "max-h-16" %>
<% end %>
<% end %>
<div class="text-sm text-white prose">
Expand Down

0 comments on commit d6d7b2d

Please sign in to comment.