TFA setup not fully accessible

Created on 2 May 2025, 13 days ago

Problem/Motivation

The "seed" field on users' TFA setup page presents difficulty for everyone:

  • the field value can't be copied navigating via keyboard or mouse if the user needs to add it to a password manager like 1password or Bitwarden,
  • it maybe skipped by screenreaders (Orca on Linux does read the form value, so I'm not certain about this, but see e.g. https://designerly.com/disabled-buttons/),

Steps to reproduce

  1. navigate the TFA setup page via keyboard
  2. try to copy the field value

Proposed resolution

Fortunately, this is very simply addressed: replace the field's "disabled" attribute with the "readonly" attribute.

This makes it possible to copy the field via keyboard or mouse, and slightly changes how Orca reads the value.

Remaining tasks

Replace the "disabled" attribute with "readonly".

User interface changes

The only visible change is the change between greyed-out and not-greyed out for the "seed" field. In the Orca screenreader at least, the only change is that the field is spoken as "read-only".

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Active

Version

2.0

Component

User interface

Created by

🇫🇷France bedlam Lyon

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