Hide brackets from screen reader

main
Bob Mottram 2022-05-29 10:32:40 +01:00
parent 0cb08dfaf3
commit 4608178a74
1 changed files with 4 additions and 1 deletions

View File

@ -444,7 +444,10 @@ def _page_number_buttons(users_path: str, box_name: str,
page_str = ' ' + str(page) + ' ' page_str = ' ' + str(page) + ' '
curr_page_str = '' curr_page_str = ''
if page == page_number: if page == page_number:
page_str = '[<mark>' + str(page) + '</mark>]' page_str = \
html_hide_from_screen_reader('[<mark>') + \
str(page) + \
html_hide_from_screen_reader('</mark>]')
aria_page_str = ' aria-current="true"' aria_page_str = ' aria-current="true"'
curr_page_str = 'Current Page, ' curr_page_str = 'Current Page, '
num_str += \ num_str += \