Sequence of skip links

main
Bob Mottram 2021-02-01 17:32:05 +00:00
parent fc0ab024d9
commit 701ca8372b
2 changed files with 9 additions and 8 deletions

View File

@ -705,14 +705,15 @@ def htmlProfile(rssIconAtTop: bool,
movedTo, alsoKnownAs, movedTo, alsoKnownAs,
pinnedContent) pinnedContent)
# Links for keyboard navigation
profileStr = \ profileStr = \
'<div class="transparent">' + \ '<div class="transparent">' + \
'<label class="transparent">' + \ '<label class="transparent">' + \
'<a class="skip-main" href="#buttonheader">' + \
translate['Skip to timeline'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \ '<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
translate['Switch to timeline view'] + '</a></label>' + \ translate['Switch to timeline view'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a class="skip-main" href="#buttonheader">' + \
translate['Skip to timeline'] + '</a></label>' + \
'</div>\n' '</div>\n'
profileStr += profileHeaderStr + donateSection profileStr += profileHeaderStr + donateSection

View File

@ -369,6 +369,9 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
tlStr += \ tlStr += \
'<div class="transparent">' + \ '<div class="transparent">' + \
'<label class="transparent">' + \ '<label class="transparent">' + \
'<a href="/users/' + nickname + '">' + \
translate['Switch to profile view'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a class="skip-main" href="#timeline">' + \ '<a class="skip-main" href="#timeline">' + \
translate['Skip to timeline'] + '</a></label> | ' + \ translate['Skip to timeline'] + '</a></label> | ' + \
'<label class="transparent">' + \ '<label class="transparent">' + \
@ -376,10 +379,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
translate['Skip to Newswire'] + '</a></label> | ' + \ translate['Skip to Newswire'] + '</a></label> | ' + \
'<label class="transparent">' + \ '<label class="transparent">' + \
'<a class="skip-links" href="#links">' + \ '<a class="skip-links" href="#links">' + \
translate['Skip to Links'] + '</a></label> | ' + \ translate['Skip to Links'] + '</a></label>' + \
'<label class="transparent">' + \
'<a href="/users/' + nickname + '">' + \
translate['Switch to profile view'] + '</a></label>' + \
'</div>\n' '</div>\n'
# banner and row of buttons # banner and row of buttons