[wp-trac] [WordPress Trac] #60774: Make the user_login field readonly instead of disabled on the profile screen

WordPress Trac noreply at wordpress.org
Thu Mar 14 11:34:38 UTC 2024


#60774: Make the user_login field readonly instead of disabled on the profile
screen
---------------------------+-----------------------------
 Reporter:  roytanck       |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Users          |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 This came up in an accessibility audit of one of the sites I work on. On
 the profile edit screen in wp-admin, the username is displayed using an
 input field with the `disabled` attribute. This field is skipped by screen
 readers, which leads to a "loss of information" for visually impaired
 users.

 It's better to use `readonly` here. This is exactly what the field is used
 for, and readonly fields are read by screen readers.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60774>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list