Skip to content

Commit

Permalink
Merge pull request #270 from mlibrary/LIBSEARCH-896-account-accessibi…
Browse files Browse the repository at this point in the history
…lity-warning

[LIBSEARCH-896] ACCOUNT: Accessibility warning
  • Loading branch information
erinesullivan committed Aug 3, 2023
2 parents 5e588cd + 8d5adb6 commit 65667c2
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion views/account-overview/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p class="overview-card-description"><%=card.description%></p>
</div>
<div class="overview-card-icon-container" style="--overview-card-icon-background-color: var(--color-<%=card.color%>-100); --overview-card-icon-color: var(--color-<%=card.color%>-500);">
<span class="material-symbols-rounded"><%=card.icon_name%></span>
<span class="material-symbols-rounded" aria-hidden="true"><%=card.icon_name%></span>
</div>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion views/components/open_in_new.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<% if title == "Favorites" %><span class="material-symbols-rounded">open_in_new</span><span class="visually-hidden">(link redirects to external site)</span><% end %>
<% if title == "Favorites" %><span class="material-symbols-rounded" aria-hidden="true">open_in_new</span><span class="visually-hidden">(link redirects to external site)</span><% end %>
4 changes: 2 additions & 2 deletions views/components/pagination.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<li class="pagination-page">
<a href="<%=pagination.previous.url%>" class="pagination-page-link">
<span class="visually-hidden">Previous page</span>
<span class="material-symbols-rounded">keyboard_arrow_left</span>
<span class="material-symbols-rounded" aria-hidden="true">keyboard_arrow_left</span>
</a>
</li>
<% end %>
Expand All @@ -22,7 +22,7 @@
<li class="pagination-page">
<a href="<%=pagination.next.url%>" class="pagination-page-link">
<span class="visually-hidden">Next page</span>
<span class="material-symbols-rounded">keyboard_arrow_right</span>
<span class="material-symbols-rounded" aria-hidden="true">keyboard_arrow_right</span>
</a>
</li>
<% end %>
Expand Down
10 changes: 5 additions & 5 deletions views/fines-and-fees/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
value="true"
>
<label for="pay-all">
<span class="material-symbols-sharp radio-button-checked">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked">radio_button_unchecked</span>
<span class="material-symbols-sharp radio-button-checked" aria-hidden="true">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked" aria-hidden="true">radio_button_unchecked</span>
<span>Pay full amount (<span class="strong">$<%=fines.total_sum_in_dollars%></span>)</span>
</label>
</div>
Expand All @@ -63,8 +63,8 @@
value="false"
>
<label for="pay-some">
<span class="material-symbols-sharp radio-button-checked">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked">radio_button_unchecked</span>
<span class="material-symbols-sharp radio-button-checked" aria-hidden="true">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked" aria-hidden="true">radio_button_unchecked</span>
<span>Pay partial amount</span>
</label>
<div id="pay-some-amount" class="radio-option-extra">
Expand All @@ -83,7 +83,7 @@
autocomplete="off"
>
<div id="payment-description" class="input-description">
<span class="material-symbols-rounded">info</span>
<span class="material-symbols-rounded" aria-hidden="true">info</span>
<span>Payment amount must include cents. Example:&nbsp;25.00</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/layout/banner.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if session[:confirmed_history_setting] == false %>
<section class="banner">
<div class="layout">
<p><span class="material-symbols-sharp">info</span> You have not yet specified whether you would like us to record your checkout history. You can update your preferences on the <a href="/settings">Settings</a> page.</p>
<p><span class="material-symbols-sharp" aria-hidden="true">info</span> You have not yet specified whether you would like us to record your checkout history. You can update your preferences on the <a href="/settings">Settings</a> page.</p>
</div>
</section>
<% end %>
2 changes: 1 addition & 1 deletion views/layout/horizontal_nav.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<% if home != page %>
<p class="breadcrumbs">
<span class="material-symbols-rounded">keyboard_arrow_left</span>
<span class="material-symbols-rounded" aria-hidden="true">keyboard_arrow_left</span>
<a href=<%=home.path%>>Back to <%=home.title%></a>
</p>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion views/layout/navigation.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<% my_pages.pages.each do |page| %>
<li class="<%= page.active %>">
<a href="<%=page.path%>" <% if page.active? %>aria-current="page"<% end %>>
<span class="material-symbols-rounded"><%=page.icon_name%></span><span><%=page.title%></span><%= erb :'components/open_in_new', locals: { title: page.title } %>
<span class="material-symbols-rounded" aria-hidden="true"><%=page.icon_name%></span><span><%=page.title%></span><%= erb :'components/open_in_new', locals: { title: page.title } %>
</a>
</li>
<% end %>
Expand Down
6 changes: 3 additions & 3 deletions views/layout/user_drop_down.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<% if session[:uniqname] %>
<nav class="user-navigation dropdown" aria-label="User Dropdown Navigation">
<button aria-expanded="false" data-dropdown="user-nav-dropdown" class="button--dropdown">
<span class="material-symbols-sharp">person</span>
<span class="material-symbols-sharp" aria-hidden="true">person</span>
<span class="username"><%=session[:uniqname]%></span>
<span class="material-symbols-rounded" style="display: block;">keyboard_arrow_down</span>
<span class="material-symbols-rounded" style="display: none;">keyboard_arrow_up</span>
<span class="material-symbols-rounded" style="display: block;" aria-hidden="true">keyboard_arrow_down</span>
<span class="material-symbols-rounded" style="display: none;" aria-hidden="true">keyboard_arrow_up</span>
</button>
<div class="navigation-lists dropdown-container" id="user-nav-dropdown" style="display: none;">
<ul class="site-navigation-list">
Expand Down
4 changes: 2 additions & 2 deletions views/settings/_modal.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
>
<div class="modal-container" role="dialog" aria-labelledby="<%= modal[:id] %>-heading" aria-describedby="<%= modal[:id] %>-text">
<button class="button--light button--close close-message" disabled>
<span class="material-symbols-rounded">close</span><span class="visually-hidden">Close</span>
<span class="material-symbols-rounded" aria-hidden="true">close</span><span class="visually-hidden">Close</span>
</button>
<% if modal[:state] %>
<div class="modal-icon state-<%= modal[:state] %>">
<span class="material-symbols-rounded">warning</span>
<span class="material-symbols-rounded" aria-hidden="true">warning</span>
</div>
<% end %>
<div class="modal-content owl">
Expand Down
18 changes: 9 additions & 9 deletions views/settings/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
<% if patron.sms_number? %>checked<% end%>
>
<label for="confirm-sms">
<span class="material-symbols-sharp radio-button-checked">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked">radio_button_unchecked</span>
<span class="material-symbols-sharp radio-button-checked" aria-hidden="true">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked" aria-hidden="true">radio_button_unchecked</span>
<span>Yes, please send me text notifications</span>
</label>
<div class="radio-option-extra">
Expand All @@ -73,7 +73,7 @@
autocomplete="on"
/>
<div id="sms-number-description" class="input-description">
<span class="material-symbols-rounded">info</span>
<span class="material-symbols-rounded" aria-hidden="true">info</span>
<span>Phone number must be 10 digits. Acceptable formats are: (123)&nbsp;456&#8209;7890, 123&#8209;456&#8209;7890, and 1234567890.</span>
</div>
</div>
Expand All @@ -88,8 +88,8 @@
<% if !patron.sms_number? %>checked<% end%>
>
<label for="deny-sms">
<span class="material-symbols-sharp radio-button-checked">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked">radio_button_unchecked</span>
<span class="material-symbols-sharp radio-button-checked" aria-hidden="true">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked" aria-hidden="true">radio_button_unchecked</span>
<span>No, do not send me text notifications</span>
</label>
</div>
Expand All @@ -115,8 +115,8 @@
<% if patron.confirmed_history_setting? && patron.retain_history? %>checked<% end %>
>
<label for="opt-in">
<span class="material-symbols-sharp radio-button-checked">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked">radio_button_unchecked</span>
<span class="material-symbols-sharp radio-button-checked" aria-hidden="true">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked" aria-hidden="true">radio_button_unchecked</span>
<span>Yes, record my checkout history.</span>
</label>
</div>
Expand All @@ -130,8 +130,8 @@
<% if patron.confirmed_history_setting? && !patron.retain_history? %>checked<% end %>
>
<label for="opt-out">
<span class="material-symbols-sharp radio-button-checked">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked">radio_button_unchecked</span>
<span class="material-symbols-sharp radio-button-checked" aria-hidden="true">radio_button_checked</span>
<span class="material-symbols-sharp radio-button-unchecked" aria-hidden="true">radio_button_unchecked</span>
<span>No, do not record my checkout history.</span>
</label>
</div>
Expand Down

0 comments on commit 65667c2

Please sign in to comment.