Opened 3 days ago
Last modified 43 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)
Change History (3)
by , 3 days ago
Attachment: | Screenshot 2024-09-26 at 13.28.14.png added |
---|
comment:1 by , 3 days ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 43 hours ago
Type: | Bug → Cleanup/optimization |
---|---|
Version: | 5.0 → dev |
Thank you Alena, I think adding role="button" should work