[wp-trac] [WordPress Trac] #50066: Make alt text input a textarea on classic editor

WordPress Trac noreply at wordpress.org
Fri Jul 3 10:53:47 UTC 2020


#50066: Make alt text input a textarea on classic editor
-------------------------+--------------------------------
 Reporter:  edent        |       Owner:  sabernhardt
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  5.5
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  ui, accessibility
-------------------------+--------------------------------
Changes (by afercia):

 * keywords:  has-patch needs-testing => has-patch


Comment:

 Replying to [comment:18 sabernhardt]:

 @sabernhardt thanks for the patch!

 > 2. CSS (modals): The Caption height is 62 pixels, and 52 pixels is the
 smallest the Alt Text box can be while showing two full lines without the
 scrollbar. (13px font with 1.42857143 line-height, plus 6px top and bottom
 padding, plus 1px border)

 In the Media Library > grid mode > Attachment Details modal, the ling-
 height value is `1.14285714` instead. I think we should fix that and make
 it consistent. It's definitely too small and it doesn't help readability
 (apart from the height issue). See attached screenshot.


 > 3. CSS (media edit screen):

 I was thinking to make the textarea height contain 2 lines of text here.
 And then further differentiate it from the Caption by setting `max-width:
 500px;`. This value is already used for textareas in the User edit pages
 (see the user Bio). Thoughts?

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


More information about the wp-trac mailing list