Selecting a column in a table header by keyboard drops the focus

Created on 13 February 2025, 2 months ago

Problem/Motivation

If you change the column a table is sorted by on for example admin/content from updated to content type by pressing the return button, then the focus order is reset. The next tab brings up the "Skip to main content" link, you are back at the top of the DOM (SC3.2.1 & SC2.4.3 - check table_header_focus_drop.mp4).

Discussed and iterated on the issue with @mgifford, @the_g_bomb, @katannshaw, and @drupa11y

Steps to reproduce

  • Tab through the table header on for example admin/content and change the column the table is sorted by by keyboard.

Proposed resolution

  • Keep the focus in the table header cell the return button was pressed in.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

User interface

Created by

🇩🇪Germany rkoller Nürnberg, Germany

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024