Opened 42 hours ago

Last modified 21 hours ago

#35795 assigned Cleanup/optimization

Admin forms: "Delete" button should be a button

Reported by: Alena Volkova Owned by: Alena Volkova
Component: contrib.admin Version: dev
Severity: Normal Keywords: Accessibility, WCAG
Cc: Alena Volkova Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

Current: link tags. Semantically incorrect.

"In HTML, links and buttons are different elements, which serve different purposes:

Links take the user to a new location, such as a new web page or new section of the current page.
Buttons trigger some action, such as showing content on the page that was previously hidden, playing a video, or submitting a form.

This distinction matters because it affects user expectations. If a screen reader announces an element as a “link” or “button,” users have expectations about what will happen when they click that element. If something else happens, this can be disorienting."

https://www.washington.edu/accesstech/websites/links-buttons/

Attachments (1)

Screenshot 2024-09-26 at 13.28.14.png (130.7 KB ) - added by Alena Volkova 42 hours ago.

Download all attachments as: .zip

Change History (3)

by Alena Volkova, 42 hours ago

comment:1 by Sarah Boyce, 40 hours ago

Triage Stage: UnreviewedAccepted

Thank you Alena, I think adding role="button" should work

comment:2 by Alena Volkova, 21 hours ago

Type: BugCleanup/optimization
Version: 5.0dev
Note: See TracTickets for help on using tickets.
Back to Top