Skip to content

Commit

Permalink
Label figure component as English
Browse files Browse the repository at this point in the history
When pages are translated, there is no translation on the alt
text or the caption attached to an image, so they need to be
semantically labelled as being in English.
  • Loading branch information
maxgds committed Jul 17, 2019
1 parent 3046af8 commit 1760abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/components/_figure.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
caption ||= ''
credit ||= ''
%>
<figure class="app-c-figure">
<figure class="app-c-figure" lang="en">
<img class="app-c-figure__image" src="<%= src %>" alt="<%= alt %>">
<figcaption class="app-c-figure__figcaption">
<% unless caption.blank? %>
Expand Down

0 comments on commit 1760abd

Please sign in to comment.