Keyboard navigation does not follow visual order of items

Created on 27 January 2025, 4 days ago

Problem/Motivation

If a Web page can be navigated sequentially and the navigation sequences affect meaning or operation, focusable components receive focus in an order that preserves meaning and operability.
https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html

Smart date with some widget types / field settings has

  • start date
  • start time
  • end time

When the widget adds an end date, it is added visually after the end time, but in focus sequence before the end time. The visual and tabbing order should be same. See the screenshot.

Steps to reproduce

  • Set up Drupal CMS with Event-recipe.
  • Edit an event, edit date.
  • Clear date's year, type in year, end date appears.
  • Tab through inputs.

Proposed resolution

Re-order input-fields so, that

  • date+time pair is used consistently.
  • tabbing order is consistent.

Remaining tasks

  • Decide on best way to use inputs: show/hide dates.
  • Implement the solution consistently across widgets

User interface changes

Input-fields are rearranged. This may lead to showing less relevant inputs or inserting new fields in between of fields. Showing new fields should be announced to screen reader user.

Field order of time+date to time+date would allow adding end date last but is not commonly used for setting a date-time.

🐛 Bug report
Status

Active

Version

4.2

Component

User interface

Created by

🇫🇮Finland simohell

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.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024