Last modified: 2013-07-24 12:11:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53617, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51617 - Echo: Don't override behaviour of link underline for inline links
Echo: Don't override behaviour of link underline for inline links
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Echo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-18 15:35 UTC by Krinkle
Modified: 2013-07-24 12:11 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot where the two links are hovered (composed image), but the bold one has underline overruled. (52.94 KB, image/png)
2013-07-18 15:38 UTC, Krinkle
Details

Description Krinkle 2013-07-18 15:35:52 UTC
The default in Vector was set to be hidden by default and show them on hover (for UX reasons I believe). MediaWiki allows users to change this through preferences.

Either way, the behaviour is set and is expected to be reflected and not overridden.

I don't know if it is intentional (since it isn't consistently done), but the main link inside an Echo item in the overlay has CSS set to enforce the underline to be hidden at all times.

The "View edit" link on the contrary works as expected and shows an underline on-hover (e.g. it does whatever the skin or user has set).

The "All notifications" and "Preferences" links on the bottom also have this restriction set, though I think it makes sense for those as those are block level (the entire width/padding a click target), more like buttons.

For consistency the underline property should not be set to either none or underline for inline links.

This can be fixed by removing "text-decoration: none;" from the "#p-personal .mw-echo-title a:hover" rule in ext.echo.overlay.css (submitting a patch in a second).

I noticed that for the Modern skin it is going to be more tricky since that skin has a rule to hide the underline inside #p-personal (because the Modern skin displays the personal portlet links as buttons instead of links). Inside regular content (like the Echo overlay items) it is intended to behave like previously described for Vector. I don't see any way to reasonably fix this in Modern other than to move the Echo overlay container out of #p-personal so that it isn't an absolutely positioned block level element injected into a list item for the personal portlet links, but an absolutely positioned element in the same visual location, but outside of that list in the DOM (which is probably something that should be done anyway to fix other nasty edge cases with the layout).
Comment 1 Krinkle 2013-07-18 15:38:54 UTC
Created attachment 12884 [details]
Screenshot where the two links are hovered (composed image), but the bold one has underline overruled.
Comment 2 Gerrit Notification Bot 2013-07-18 15:40:03 UTC
Change 74374 had a related patch set uploaded by Krinkle:
Remove override of skin behaviour for inline anchor's text-docaration

https://gerrit.wikimedia.org/r/74374
Comment 3 Bartosz Dziewoński 2013-07-18 15:40:56 UTC
(In reply to comment #0)
> I don't see any way to reasonably fix this
> in
> Modern other than to move the Echo overlay container out of #p-personal so
> that
> it isn't an absolutely positioned block level element injected into a list
> item
> for the personal portlet links, but an absolutely positioned element in the
> same visual location, but outside of that list in the DOM (which is probably
> something that should be done anyway to fix other nasty edge cases with the
> layout).

Previously suggested on Id8dd1454 and bug 47993 and bug 47932 and I think a few other bugs as well.
Comment 4 Ryan Kaldari 2013-07-18 21:06:45 UTC
I agree it is inconsistent, both with the rest of the skin and other parts of Echo. However this was intentional per the designer. CCing Vibha.
Comment 5 Ryan Kaldari 2013-07-23 22:27:40 UTC
If Vibha doesn't have any objections, I'm fine with merging the patch.
Comment 6 Gerrit Notification Bot 2013-07-24 12:11:13 UTC
Change 74374 merged by jenkins-bot:
Remove override of skin behaviour for inline anchor's text-decoration

https://gerrit.wikimedia.org/r/74374

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links