[wp-trac] [WordPress Trac] #50066: Make alt text input a textarea on classic editor
WordPress Trac
noreply at wordpress.org
Fri May 8 01:35:35 UTC 2020
#50066: Make alt text input a textarea on classic editor
-------------------------------------+--------------------------------
Reporter: edent | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.5
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui, accessibility
-------------------------------------+--------------------------------
Changes (by sabernhardt):
* keywords: needs-patch => has-patch needs-testing
Comment:
Thanks @edent for the pull request!
**50066.diff** includes the 4 fields you identified for switching to
`textarea` tags. I just moved the `data.model.alt` variable inside the tag
for the last item (the Image Details modal).
The option **50066.edit-media.diff** also changes the alt text field to a
textarea on the Edit Media screen (editing an image under Media ->
Library). The current input is already wide, but this would be more
consistent with the post editor then. The caption field there has a height
of 4em, yet I did not set the height for alt text as well.
If the additional textarea is desired, I'm not sure whether it's better to
change the CSS selector to `.wp_attachment_details textarea.widefat` or to
add the alt text ID explicitly along with the caption like this:
{{{
.wp_attachment_details #attachment_alt,
.wp_attachment_details #attachment_caption {
height: 4em;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50066#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list