Instead of a link <a> element, use buttons <button> for things that are buttons.

Screenshot of a page in edit mode. The Save link is indicated as well as the DevTools where the link is highlighted in the DOM structure.

CommentFileSizeAuthor
edit-module-buttons-for-buttons.png72.74 KBjessebeach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Component: Code » Accessibility
Wim Leers’s picture

Assigned: Unassigned » Wim Leers
Wim Leers’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
Status: Active » Patch (to be ported)

Done. Pixel-for-pixel identical styling is maintained, but required more than just CSS selector changes.

http://drupalcode.org/project/edit.git/commit/9e8ca2c

nod_’s picture

Status: Patch (to be ported) » Closed (fixed)
webchick’s picture

Issue tags: +Edit D7 Backport
Liam Morland’s picture

Issue tags: -a11y +Accessibility