randomling: A wombat. (Default)
Lee ([personal profile] randomling) wrote in [site community profile] dw_dev2011-10-09 04:41 pm
Entry tags:

Bug 2886

So I'm working on Bug 2886, and for most of it I have a working patch. (Back end, at least - and the front end looks like it will be fairly easy.)

I have one question on the spec here, which I wanted to open out to the wider community.

We're allowing title attributes (ie: hover text) for the user-defined links that show up in the sidebar. Showing them on links was, once I had much hand-holding through the codebase and figuring out what in hell I was doing, not that hard. However - that particular widget also allows users to define headings (by simply plugging in a title and no link).

It turns out it's a much harder problem to figure out how to allow hover text over the headings without breaking everything else, 'cause that refers to the way all the headings for the modules are printed, and hover text is (on most of them) an attribute that will never get used. So it's going to end up with passing a lot of empty strings back to the appropriate function, if I implement this.

So my question is: should I implement the possibility of hover text over headings? What do you guys think? Is that worth the time and effort and rejigging of the codebase to allow it?

It might perhaps be useful to have such an attribute available, should we decide to make more hover-text-related changes in the future.

Anyway - please let me know your thoughts.

(Also, I'm feeling anxious that I have been confusing or unclear. Do let me know if there's anything you need me to clarify or explain further.)
roadrunnertwice: Dialogue: "I have caught many hapless creatures in my own inter-net." (Hapless creatures (Rainy Days))

[personal profile] roadrunnertwice 2011-10-09 05:41 pm (UTC)(link)
Leaving aside how mobile browsers don't handle hover text: one generally doesn't hover over something looking for text unless there's an affordance for it, and the only affordances that suggest hovering are images, text with a dotted underline (how most browsers render the abbr tag), and links, in that order. Headers aren't on that list, and I don't think it's worth the effort to expose those potential title attributes. (In fact, it might be actively mischievous.)
mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2011-10-10 01:17 am (UTC)(link)
I don't see much call for hover text over things that don't really have then normally. It would be unexpected to hover over something that doesn't already have decoration (underline, image) and get text.
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2011-10-12 11:05 pm (UTC)(link)
I see no point in titles for non-link headers. Given it's my suggestion and it never occured to me that someone might want that, don't sweat it. Links benefit from title text if it's used well, but titles don't have a use for them.

Also, when you're done LMK so I can write the FAQ entry, I keep meaning to start doing Docs stuff, might as well start with my own suggestion, right?

Thx for doing it BTW, it'll be something I'll use a fair bit.
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2011-10-14 10:05 am (UTC)(link)
Agreed with everyone else that we don't need hover text over titles, just the links sounds perfect.