Skip to content

Commit

Permalink
accessibilité : Donne une description alternative vide aux illustrati…
Browse files Browse the repository at this point in the history
…ons show campagne
  • Loading branch information
etienneCharignon committed Oct 21, 2024
1 parent 7e9cd19 commit d411822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/helpers/situation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def situation_illustration(situation, couleur_bord: nil)

image_tag cdn_for(situation.illustration),
style: couleur_bord.present? ? "border-color: #{couleur_bord};" : '',
class: 'situation-illustration'
class: 'situation-illustration',
alt: ''
end
end
2 changes: 1 addition & 1 deletion app/views/admin/campagnes/_banniere_test_campagne.html.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

div class: 'card__banner card__banner--green d-flex justify-content-between' do
div class: 'd-flex align-items-end' do
svg_tag_base64 'avatar_bienvenue.svg', class: 'banner__icone'
svg_tag_base64 'avatar_bienvenue.svg', class: 'banner__icone', alt: ''
end
div class: 'card__banner__texte' do
div class: 'card__banner__description' do
Expand Down

0 comments on commit d411822

Please sign in to comment.