Project

General

Profile

Actions

Task #104796

open

Use buttons instead of anchors for javascript handled actions

Added by Benjamin Kott 3 months ago. Updated about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2024-09-09
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

This epic is to collect dedicated issues to fix misusages of anchors (<a>) where buttons should be used.
Example: This is an anchor tag that should really be a button and needs migration.

<a href="#" onClick="foo();">Some title</a>
<button type="button" onClick="foo();">Some title</button>

Note: We do not use onClick function calls, this is just an example.
The look and feel should be kept as is for now.


Subtasks 1 (0 open1 closed)

Task #104865: Anchors are used instead of buttons to switch tabsClosed2024-09-09

Actions

Related issues 7 (5 open2 closed)

Related to TYPO3 Core - Task #104798: Anchors are used instead of buttons to collapse panelsClosedBenjamin Kott2024-09-03

Actions
Related to TYPO3 Core - Bug #103583: Improve accessibility of elements with low opacity on focus by keyboardUnder Review2024-04-09

Actions
Related to TYPO3 Core - Task #104877: Introduce new DefaultButton as replacement for LinkButton in case href='#'Under Review2024-09-10

Actions
Related to TYPO3 Core - Task #104882: Use button for dropdown instead of anchorUnder Review2024-09-10

Actions
Related to TYPO3 Core - Bug #104901: Links with missing href are not focusable by keyboardUnder Review2024-09-11

Actions
Related to TYPO3 Core - Bug #104905: Admin Tools > Environment > Image processing: use button-tags and correct headline-tagsClosed2024-09-11

Actions
Related to TYPO3 Core - Bug #103925: Live search pagination has no keyboard actions implemented - and is also not reachable with keyboard navigationUnder Review2024-05-26

Actions
Actions #1

Updated by Benjamin Kott 3 months ago

  • Related to Task #104798: Anchors are used instead of buttons to collapse panels added
Actions #2

Updated by Benjamin Kott 3 months ago

  • Tracker changed from Epic to Task
  • TYPO3 Version set to 13
Actions #3

Updated by Ayke Halder 3 months ago

  • Related to Bug #103583: Improve accessibility of elements with low opacity on focus by keyboard added
Actions #4

Updated by Ayke Halder 3 months ago

Labeling is another point we might try to fix here for buttons that consist of an icon only:

<button type="button">
    SOME_ICON_CODE
    <span class="visually-hidden">SOME LABEL</span>
</button>
<button type="button" aria-label="SOME LABEL">
    SOME_ICON_CODE
</button>
Actions #5

Updated by Benjamin Kott 3 months ago

Ayke Halder wrote in #note-4:

Labeling is another point we might try to fix here for buttons that consist of an icon only:

[...]

[...]

We only want to use aria-label when no other way is possible. The workaround with "visually-hidden" is the actually preferred solution here.

Actions #6

Updated by Benjamin Kott 2 months ago

  • Subtask #104865 added
Actions #7

Updated by Ayke Halder 2 months ago

  • Related to Task #104877: Introduce new DefaultButton as replacement for LinkButton in case href='#' added
Actions #8

Updated by Ayke Halder 2 months ago

  • Related to Task #104882: Use button for dropdown instead of anchor added
Actions #9

Updated by Ayke Halder 2 months ago

  • Related to Bug #104901: Links with missing href are not focusable by keyboard added
Actions #10

Updated by Ayke Halder 2 months ago

  • Related to Bug #104905: Admin Tools > Environment > Image processing: use button-tags and correct headline-tags added
Actions #11

Updated by Ayke Halder 2 months ago

  • Related to Bug #103925: Live search pagination has no keyboard actions implemented - and is also not reachable with keyboard navigation added
Actions #12

Updated by Benni Mack about 1 month ago

  • Target version changed from 13 LTS to Candidate for Major Version
Actions

Also available in: Atom PDF