Issue Bug Closed

#104901Links with missing href are not focusable by keyboard

Ayke Halder 09/11/24, 09:32 updated 12/02/25, 14:33

Description

A link with a missing href-tag is not focusable by keyboard:

<a class="btn btn-primary" data-dispatch-action="…">{LABEL}</a>

Use button-markup instead:

<button type="button" class="btn btn-primary" data-dispatch-action="…">{LABEL}</button>

The use of href="#" to make the link focusable is discouraged.

Reviews 6