Opened 6 months ago
Closed 6 months ago
#36394 closed Cleanup/optimization (duplicate)
Accessibility improvements for anchor tags in the admin page.
| Reported by: | Antoliny | Owned by: | Antoliny |
|---|---|---|---|
| Component: | contrib.admin | Version: | 5.1 |
| Severity: | Normal | Keywords: | accessibility |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
In a recent task where I added underlines to links in the main content area of the admin page(ticket34917), We added role="button" to elements where the underline shouldn't be visually displayed.
However, this approach is not ideal from an accessibility perspective.
When a screen reader accesses an element with role="button", it is read as a "button." However, since it is fundamentally an anchor tag, this may lead screen reader users to experience unexpected behavior.
Additionally, although it is announced as a "button," it does not support spacebar interaction because it remains as anchor tag at its core.
It seems we need to find an alternative way to remove the underline without adding role="button", while keeping the current underline styling intact elsewhere.
Change History (2)
comment:1 by , 6 months ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 6 months ago
| Resolution: | → duplicate |
|---|---|
| Status: | assigned → closed |
We have ticket #36192 which is removing
role="button"Perhaps you can review the changes there