Skip to content

Commit

Permalink
fixup Have aria label match visible label, spot label even with filte…
Browse files Browse the repository at this point in the history
…r announcement present
  • Loading branch information
dracos committed Jun 12, 2024
1 parent 57bc68c commit 1c999ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/web/base/js/translation_strings.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
update_plural: '[% loc('updates', "JS") %]'
},

select_status_aria_label: '[% loc('Select report status', "JS") %]',
select_category_aria_label: '[% loc('Select a category to display', "JS") %]',
select_status_aria_label: '[% loc('Report status', "JS") %]',
select_category_aria_label: '[% loc('Category', "JS") %]',

in_the_past: '[% loc('Please select a time in the past', "JS") %]'

Expand Down
2 changes: 1 addition & 1 deletion web/cobrands/fixmystreet/fixmystreet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ $.extend(fixmystreet.set_up, {
$('.js-multiple').make_multi();

function update_label(id, str) {
$(id).prev('label').addClass('hidden-js').attr('for', id.slice(1)).after(function(){ return $('<span>' + this.innerHTML + '</span>'); });
$(id).prevAll('label').addClass('hidden-js').attr('for', id.slice(1)).after(function(){ return $('<span>' + this.innerHTML + '</span>'); });
$(id).next('.multi-select-container').children('.multi-select-button').attr('aria-label', str);
}
update_label('#statuses', translation_strings.select_status_aria_label);
Expand Down

0 comments on commit 1c999ab

Please sign in to comment.