Skip to content

Skip to Main Content - Focus Visible #6084

Description

@dhweddington

@lgeggleston

Issue reported by University of Virginia (UVA) Library’s Assessment, Communications, and User Experience (ACE) team as part of internal DSpace 9 accessibility audit.

Describe the bug

Button and focus are not visible for skip to main content button.

Page

General Alerts and Sitewide Issues

WCAG Guideline

WCAG 2.4.7

To Reproduce

Relevant code

\<button \_ngcontent-dspace-angular-c3074528159="" id="skip-to-main-content" class="sr-only ng-tns-c3074528159-0"\> Skip to main content\</button\>

Expected behavior

Change button to <a href> to avoid conflict with angular reformatting and messing up the focus.

Suggested fix / example code

\<a href="#main-content" class="visually-hidden focusable skip-link"\>Skip to main content\</a\>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions