https://bugzilla.wikimedia.org/show_bug.cgi?id=69213
Bug ID: 69213
Summary: Flow: title attributes (tooltips) aren't useful, some
wrong
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Flow
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
The W3C says "The title attribute may be set for both A and LINK to add
information about the nature of a link. This information may be spoken by a
user agent, rendered as a tool tip, ..." But the title attributes of many Flow
actions and links simply repeat the text in the anchor, while the Permalink
title attribute is just "topic" or "post". We should eliminate title
attributes or provide proper ones.
Fixing this would also avoid the Hovercards Beta Feature on enwiki popping up
cards for the enwiki articles on Gratitude, Topic, and Post.
I think class Anchor is creating most of the title attributes that duplicate
the anchor text. It should not do this! Instead class Anchor should take an
optional titleAttr Message|string parameter; if not provided it should not
create a title attribute. It could also check if $message is a Message, if so
then fabricate a titleAttr message key by appending '-tooltip' to
$message->getKey().
Here's an incomplete list of bad title attributes:
Reply in titlebar has no title attribute, it should be "Reply to topic"
Reply under a post has title="Reply", should be nothing or "Reply to this post"
Edit under a post has title="Edit", should be nothing or "Edit this post"
Thank under a post has title="thank' , should be "Thank the author of this
post"
(The link title is only "Thank" because the flow-post-meta-actions are
capitalized using CSS text-transform: capitalize.)
In the Action menu, the title attributes:
"Edit title" should be nothing or "Edit topic title"
"Summarize" should be nothing or "Provide a summary of this topic"
etc. The same actions in the post action menu should have title="<Action>
post".
Permalink in the Topic action menu has title="topic" (message
'flow-link-topic'), in the Post action menu it has title="post" (message
'flow-link-post'). Both are wrong, should be nothing or "Permanent link (URL)
to this topic[/post]"
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l