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

WordPress Trac noreply at wordpress.org
Mon Jul 6 06:00:20 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
-------------------------+--------------------------------

Comment (by sabernhardt):

 Thanks @afercia!

 1. If we change line-height for consistency, I'd like to set all of those
 fields to 1.5 instead of having decimals based on fourteenths. The font
 size is set to 13px, or else 16px for smaller screens. So the line-height
 would become a more even decimal value at desktop sizes and an even value
 for mobile.

 2. I'm unsure about—though not opposed to—setting a `max-width` of 500px
 on the Alt Text field. I'd rather not have both of its dimensions smaller
 than the Caption field's width and height on larger screens. While the
 visual hint to keep alt text short might be understood at larger
 viewports, that's not as effective in the middle range (especially around
 600px wide).

 3. The line breaks (new lines) are not always filtered out. In a test with
 the block editor's sidebar textarea field, the line breaks remained in the
 final output. With the classic editor, the first break was removed (but
 not a second break) when there was a caption, and the line breaks remained
 when the image had no caption. The breaks also were sometimes removed when
 switching from Visual to Text mode or when editing the image details after
 the post was published/updated.

 Anyway, we could look more closely into all this for 5.6, with input from
 the Media team.

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


More information about the wp-trac mailing list