Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

Instead of making the "second row" smaller, it might be better to remove the link from the "second row"?

mcrittenden’s picture

I agree with Dries. If you make the test smaller, you still (perhaps even more so) face the problem of people thinking that the description text is a different link than the heading text for each one. Better to remove the link altogether. We could still make the text smaller in addition to that, though.

tstoeckler’s picture

I like that idea. Removing the html a-tag, though, you lose that pretty "the whole tab is clickable" thing (try it, the only pixel that isn't clickable is the border between two tabs, isn't it sweet...). So i simply changed the font color for those particular links to black. (Related note: Is there any "code style"-thing for the order of css attributes?) See screenshot.
Even though I read Dries' "Instead", I also attached a screenshot that has the above and the smaller font-size for comparison. I personally think with the different color that is not necessary, though.
I wondered, though about the "strong" tag of the tab-title, that was deemed so important in the initital VT-patch that it was added back in after someone removed it, for "semantic reasons". So i wondered, why these semantics (which clearly make sense) aren't to be seen by the end user, and I saw that the bold-tag, that strong otherwise has, is specifically removed for these VT-tab-titles. So I added that back in and attached a screenshot how that looks together with the attached patch. I like it best, actually, although you lose the distinction of the active tab, which is always bold.

mcrittenden’s picture

I agree that the third version looks the best, but I think that sort of goes against the whole point of that theme, which seeks simplicity wherever possible. I think we should be aiming for usability over pretty-ness in a theme like this.

With that in mind, I'd vote for the second version, with the text colored differently and a little smaller. Yeah, it adds some styles, but I think the usability improvement is a big one. Contrast this with the third version, which isn't a usability improvement over the second version (in fact, it might be seen as less usable as the active tab doesn't stand out as much as you pointed out), and just looks a little better.

mrfelton’s picture

My vote goes for version 2 also. A massive visual improvement and +1 for usability - the page is much clearer.

tstoeckler’s picture

@mcrittenden: Actually the third version is the only one which actually removes one line of code, namely the "font-weight: normal" in the ".vertical-tabs-list li strong" element which overrides the normal "stong {font-weight: bold;}" code. Therefore your (first) argument should be for the third version.
Concerning usability: I personally think things such as this should be handled on the theme layer (therefore added in Garland's code, not core's default output, but let's hear what Dries says...

mcrittenden’s picture

tstoeckler: Good point. Since stark is the only affected theme, why not fix it directly in stark rather than in core css?

tstoeckler’s picture

Because Stark is meant to reveal core's CSS. It is not a theme in its usual sense. The only CSS that Stark has, is a bit of layout, not any real theming.
I do believe that core should output some 'sensible defaults' when it comes to markup, even though you can do anything with a custom theme nonetheless. Just as it makes sense to color links in blue by default, even though any theme can do this its way.

webchick’s picture

Issue tags: +vertical tabs

Tagging.

mcrittenden’s picture

I say let's roll a patch with solution #3 (make all the tab headings bold) to review.

kkaefer’s picture

We could move the font-weight: normal to Garland and make it black. Additionally, we could use <small> instead of span for the descriptions.

Bevan’s picture

Issue tags: +Needs usability review

Don't make all of them bold. Attention does not need to be drawn to titles – users seek them out on their own. Perhaps just the first one I think is fine. http://drupal.org/files/issues/patch-smaller.png is great. Possibly also indent the summary a 0.5em.

tstoeckler’s picture

@Bevan: Note that this is not about theming. We're not talking about how Garland displays the stuff but Stark (read: Drupal core without any theme). Therefore I am +1 for #11, which would keep only the selected one bold (but in Garland's code, not Drupal's). The indent of the summary is arguable but definitely belongs to Garland's territory (again: not Drupal core's output).

Bevan’s picture

Is Stark's goal to provide minimalistic CSS? Or just HTML? Does it not want to provide – at the very least – good – albeit minimalistic – defaults?

tstoeckler’s picture

Exactly.
0.5em indent isn't minimalistic, though.
And it is debatable (as seen above) whether first tagging something "strong" and then font-sizing it normal is minimalistic. I'd say no again.

tstoeckler’s picture

Attached a new patch. Followed kkaefer's suggestion and turned < span > into < small >. Garland still looks the same and it allowed to delete a few lines from vertical-tabs.css, which is good, IMO.
Attached a screenshot for how it looks it Stark now. From my POV this should be good to go.

Don't know why this was at "needs review", but now it actually does.

Status: Needs review » Needs work

The last submitted patch failed testing.

tstoeckler’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch failed testing.

tstoeckler’s picture

Status: Needs work » Needs review
FileSize
2.62 KB

The recent vertical-tabs CSS clean-up issue broke this.
Rerolled and tested locally: still works as expected. Screenshots, are still the same (#16).

webchick’s picture

Status: Needs review » Fixed

This looks good to me. I've committed this to HEAD. We can always make touch-ups later if we need to, but this is a big improvement. Thanks, tstoeckler! :)

Status: Fixed » Closed (fixed)
Issue tags: -Needs usability review, -vertical tabs

Automatically closed -- issue fixed for 2 weeks with no activity.