Skip to content

Commit

Permalink
Make hidden skip link visible on focus (fixes UniversalViewer#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Oct 18, 2024
1 parent 39ee05b commit 4811c3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/content-handlers/iiif/modules/uv-shared-module/Shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export class Shell extends BaseView<BaseConfig> {
this.extension.data.config!.content.skipToDownload +
"</a>"
);
var srOnlyElements = this.$element.find('.sr-only');
srOnlyElements.on("focus", (e) => $(e.target).removeClass('sr-only'));
srOnlyElements.on("blur", (e) => $(e.target).addClass('sr-only'));

this.$headerPanel = $('<div class="headerPanel"></div>');
this.$element.append(this.$headerPanel);
Expand Down

0 comments on commit 4811c3c

Please sign in to comment.