[wp-trac] [WordPress Trac] #37650: Title attribute for comment reply link
WordPress Trac
noreply at wordpress.org
Fri Aug 12 23:23:35 UTC 2016
#37650: Title attribute for comment reply link
--------------------------+-----------------------------
Reporter: trepmal | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In the link created by `get_comment_reply_link()` there's no `title`
attribute. I was trying to use an arrow icon, and wanted to add a tooltip
for the user. Currently the only way to do this is to use the
`comment_reply_link` filter and alter the HTML markup - not terribly
elegant.
While aria-label is fantastic for assistive devices, I think `title` would
be a nice addition for simple hints.
Attached patch adds `reply_title` and `login_title` arguments which
default to empty, since the default link text is self-explanatory and a
tooltip would be unnecessary. Naturally, open to feedback and
alternatives.
Empty title attributes do not result in empty tooltips in the browsers I
have readily available (OSX Firefox/Chrome/Safari) - I somewhat recall
older versions of IE being an issue, but I don't have a definitive list of
browser behaviors here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37650>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list