Updated looks for labels and hints

Hi everyone, quick proposal about our labels and hints here.

Currently:

  • All labels are uppercase
  • All hints are very small

Because of these we have problems in legibility and this could be improved very easily.

All caps text is not inherently bad, but it becomes bad when it is used in longer sentences, and we do have some longer labels throughout the interface (Example: "Display Annotations Highlight By Default"or “XWiki Class Defining Annotations Structure”). In these cases, legibility is affected.

The problem is aggravated when the default font is a serif one, like in the Journal theme color for example (see below).

My proposal is to make the labels lower case by default (by removing the text-transform property or at least changing it to capitalize). And also to increase the font size of the hints a bit (around 0.9em). The following screenshots show the before and after of these changes.

These changes also affect other color themes:

Thanks for reading. What do you think?

I’d really appreciate that. In my opinion, readability and information density should take priority in a wiki—this speaks against using uppercase in web design.

This is a common issue for me when creating AWMs—especially when changing the PrettyName in an uppercase label, only to spot a typo later in the live table. :wink:

I just created a small XWiki.StyleSheetExtension to experiment a bit, and for me, setting font-size: 1.1em without uppercase works much better than the default setting for labels. Even when a label is followed by a WYSIWYG field containing bold paragraphs, the difference between the label and the field content wasn’t clear at all before. With the new font size and without uppercase, it’s much easier to distinguish between them.

.xform dl dt label {
    text-transform: none !important;
    font-size: 1.1em !important;
}

I couldn’t wait for the update. :smile:

1 Like

+1 for this.

I’m worried that this will make the value less visible in some cases. For instance:

Here the value is more clear for me in the previous state. But I’m fine to increase the hint font size if this fixes an accessibility issue. Or maybe we can improve the way the value is presented.

Thanks,
Marius

Indeed, that’s going to happen. I am personally fine with it because the added legibility overweights the box height, IMO.

WCAG doesn’t have a specific minimum text size though AFAIK so we are probably fine either way (pinging @CharpentierLucas about this).

1 Like

+1

+0

Thx

For the best accessibility, the text size should adapt to user preferences defined in the browser. AFAIK, there’s no specific values needed for WCAG, people usually recommend 16px for regular text.


+1 . Is the font-weight enough to differentiate the labels from the values? I think the idea implemented by @CycleSEC would make things a bit clearer.

On this picture, it’s pretty difficult to figure out what is what (it was already the case tbh). What do you think about adding a marker next to the hint that doesn’t rely on text properties? Here are just a few ideas:

  • Put all the hints in an info box with the title Hint (probably too heavy, it adds a lot of boxes on the page, which is something we want to avoid, but at least it’s easy to figure out what is what)
  • Add a gray vertical line on the left of the hint block (a bit like it’s done in dark blue for info blocks today)
  • Add a Hint icon at the start of the hint, or just the Hint: word.

IMO there’s plenty of solutions possible to make these hints distinct without playing on text style. I’m sure we could find one that doesn’t bring too much focus to them :slight_smile:


Thanks for starting this discussion!
Lucas C.

2 Likes

+1 for lower case labels, it’s a pain in the AWM editor.

Regarding hints, I’m not against making them larger, but I agree that we should have a way to better differentiate them.

+1, I never understood this “let’s put everything uppercase” choice

+1

+1 as long as the hints stay easily distinguishable from the rest.

Thanks everyone, I will proceed with the changes to the Label case and do a bit more explorations about the hints directly on the PR.