Skip to content

Commit

Permalink
use i18 message to describe slider states in aria label
Browse files Browse the repository at this point in the history
  • Loading branch information
ablanathtanalba committed Jun 3, 2021
1 parent 4cd2d8d commit dfcfda5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/htmlutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ let htmlUtils = {
return `
<div class="switch-container ${action}">
<div class="switch-toggle switch-3 switch-candy">
<input id="block-${origin_id}" name="${origin}" value="${constants.BLOCK}" type="radio" aria-label="block ${origin}" ${is_checked(constants.BLOCK, action)}>
<input id="block-${origin_id}" name="${origin}" value="${constants.BLOCK}" type="radio" aria-label="${i18n.getMessage("domain_slider_block_tooltip")}: ${origin}" ${is_checked(constants.BLOCK, action)}>
<label title="${tooltips.block}" class="tooltip" for="block-${origin_id}"></label>
<input id="cookieblock-${origin_id}" name="${origin}" value="${constants.COOKIEBLOCK}" type="radio" aria-label="cookie-block ${origin}" ${is_checked(constants.COOKIEBLOCK, action)}>
<input id="cookieblock-${origin_id}" name="${origin}" value="${constants.COOKIEBLOCK}" type="radio" aria-label="${i18n.getMessage("domain_slider_cookieblock_tooltip")}: ${origin}" ${is_checked(constants.COOKIEBLOCK, action)}>
<label title="${tooltips.cookieblock}" class="tooltip" for="cookieblock-${origin_id}"></label>
<input id="allow-${origin_id}" name="${origin}" value="${constants.ALLOW}" type="radio" aria-label="allow ${origin}" ${is_checked(constants.ALLOW, action)}>
<input id="allow-${origin_id}" name="${origin}" value="${constants.ALLOW}" type="radio" aria-label="${i18n.getMessage("domain_slider_allow_tooltip")}: ${origin}" ${is_checked(constants.ALLOW, action)}>
<label title="${tooltips.allow}" class="tooltip" for="allow-${origin_id}"></label>
<a></a>
</div>
Expand Down

0 comments on commit dfcfda5

Please sign in to comment.