[wp-trac] [WordPress Trac] #25459: Provide more meaningful links in Edit Post/Page
WordPress Trac
noreply at wordpress.org
Wed Dec 11 00:13:43 UTC 2013
#25459: Provide more meaningful links in Edit Post/Page
-----------------------------------------------+---------------------------
Reporter: grahamarmfield | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Future
Component: Accessibility | Release
Severity: minor | Version: 3.6.1
Keywords: i18n-change has-patch 2nd-opinion | Resolution:
-----------------------------------------------+---------------------------
Comment (by toscho):
I’m already sorry for bringing up the name discussion. :)
`alt()` is way too vague and misleading, and there will be probably
collisions with existing plugins or themes. Keep in mind the new function
goes into the global namespace.
What we also should keep in mind: this is just a workaround for the
current layout in our '''Publish''' box. Not even a good one, because
these short redundant links are still not very useful on touch screens or
for keyboard access (and technically, they act like buttons).
So I think we should not use name that implies that this is a good
solution.
Focus on what it does: it creates two elements, one with an attribute
`aria-hidden="true"`. It doesn’t hide anything – that depends on CSS or
client implementation.
I would prefer something like `get_aria_text_combination( $aria_hidden,
$aria_accessible, $classname )`. Probably with better variable names. :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25459#comment:50>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list