[wp-meta] [Making WordPress.org] #6173: Add ALT text field to upload form
Making WordPress.org
noreply at wordpress.org
Fri Apr 14 20:01:37 UTC 2023
#6173: Add ALT text field to upload form
-----------------------------+---------------------
Reporter: alexstine | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Photo Directory | Resolution:
Keywords: needs-patch |
-----------------------------+---------------------
Comment (by joedolson):
If we don't use the figure/figcaption, then using aria-hidden on the
element with the alt text doesn't run up against Firefox reading it out as
part of the figure's name. However, this should be tested widely, as
referencing an element with the aria-hidden attribute as a label is
tricky.
I kind of wonder if we're not just over thinking this, and that it's just
fine for the alt text to be present on the image and also in visible text
immediately after. The major problem is that inside a figure, that results
in reading both, which is annoying. If this isn't a figure, however, the
image link is stand alone and so is the associated text. With the text
'alternative text' present, a screen reader will get the link purpose, the
alt text, then navigate to the paragraph that starts with 'Alternative
text', which should tell them "I've already heard this and can move on."
I'm suggesting this. Just very simple; no excess semantics that create
relationships that are not, in this case, helpful.
[https://codepen.io/joedolson/pen/WNawwJE Suggestion at CodePen]
In this case, I'm *not* hiding the text Alternative Text, as that is
useful to inform the user that this text is redundant for them.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6173#comment:29>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list