Problem/Motivation

A link with only # as href value is not accessible. It should target an anchor in the page or be another element like a button : https://webaim.org/techniques/hypertext/

The link in this example goes nowhere. Its only purpose is to activate a JavaScript function.

<a href="#" onmouseover="dropdownmenu()">Products</a>

Proposed resolution

Use a styled button element or add a target (ID) for the anchor link.

Remaining tasks

Update the element and add missing CSS or add an id at the top of the page to scroll to.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

santerref created an issue. See original summary.

santerref’s picture

Issue summary: View changes

jfurnas made their first commit to this issue’s fork.

jfurnas’s picture

I am deploying an accessibility fix to add an aria-label to the anchor link, so that it will be called out by screen readers appropriately.