Skip to content

Commit

Permalink
Add alt text to warning icon
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Jan 29, 2025
1 parent caeeb6a commit bd97f66
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion app/views/application/_notification.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div class="notification">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<p class="content"><%= message %></p>
</div>
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<% if Parliament.dissolution_announced? %>
<div class="notification">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<% if Parliament.dissolved? %>
<h2 class="header"><%= Parliament.dissolved_heading %></h2>
<p class="content"><%= Parliament.dissolved_message %></p>
Expand Down
4 changes: 3 additions & 1 deletion app/views/archived/petitions/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="notification">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<p class="content">
These petitions were submitted during the <%= @parliament.period %> parliament
</p>
Expand Down
4 changes: 3 additions & 1 deletion app/views/archived/petitions/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="notification">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<p class="content">
This petition was submitted during the <%= @parliament.period %> parliament
</p>
Expand Down
4 changes: 3 additions & 1 deletion app/views/feedback/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<% if Site.show_feedback_page_message? %>
<div class="notification notification-<%= Site.feedback_page_message_colour %>">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<%= markdown_to_html(Site.feedback_page_message) %>
</div>
<% end %>
Expand Down
4 changes: 3 additions & 1 deletion app/views/pages/home/_opened.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

<% if Site.show_home_page_message? %>
<div class="notification notification-<%= Site.home_page_message_colour %>">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<%= markdown_to_html(Site.home_page_message) %>
</div>
<% end %>
Expand Down
4 changes: 3 additions & 1 deletion app/views/pages/home/_pending.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="notification">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<h2 class="header"><%= Parliament.dissolved_heading %></h2>
<p class="content"><%= Parliament.dissolved_message %></p>
<% if Parliament.dissolution_faq_url? %>
Expand Down
4 changes: 3 additions & 1 deletion app/views/petitions/_open_petition_show.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<% if Site.show_petition_page_message? %>
<div class="notification notification-<%= Site.petition_page_message_colour %>">
<span class="icon icon-warning-white"></span>
<span class="icon icon-warning-white">
<span class="visuallyhidden">Important:</span>
</span>
<%= markdown_to_html(Site.petition_page_message) %>
</div>
<% end %>
Expand Down

0 comments on commit bd97f66

Please sign in to comment.