[wp-trac] [WordPress Trac] #40331: The placeholder attribute should not be used as a replacement for a label

WordPress Trac noreply at wordpress.org
Mon May 13 15:31:17 UTC 2024


#40331: The placeholder attribute should not be used as a replacement for a label
-------------------------------------------------+-------------------------
 Reporter:  afercia                              |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.6
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots a11y-task has-patch  |     Focuses:  ui,
                                                 |  accessibility
-------------------------------------------------+-------------------------

Comment (by joedolson):

 Thanks @afercia!

 1) Accordion section title. I agree; this should be made more equivalent
 to the widgets header. I had noticed that those were different, but just
 didn't tackle it. But I hadn't noticed that it was causing that extra
 problem with the label not being clickable, which is worth resolving.

 2) I'd intended to remove duplicate placeholders in this patch; I
 presumably missed that one. Is that the only still present patch you're
 seeing, or are you just using it as an example?

 This patch has gone through a lot of iterations...

 Number 2 is a minor tweak that can easily be done in this patch; the first
 I'm not as sure about, as there's a lot of stuff tied up in that class
 that could require a lot of tweaking. But I'll try it and see what
 happens. If it causes complicated problems, I'll create a follow-up ticket
 to deal with it separately after this is committed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40331#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list