cfpb / design-manual

⚠️ THIS REPO IS DEPRECATED ⚠️ A set of design principles and standards for the Consumer Financial Protection Bureau.
https://cfpb.github.io/design-manual/
Creative Commons Zero v1.0 Universal
98 stars 71 forks source link

Inline tooltips #335

Closed marteki closed 7 years ago

marteki commented 9 years ago

Moving this part of the discussion from issue #139.

There's use cases for having tooltips inline, possibly in paragraph text. When this happens, our traditional methods of placing a icon after the text to be explained might not work as well.

The tooltips might be in a single line, surrounded by text.

screen shot 2015-06-29 at 11 10 43 am

screen shot 2015-06-29 at 11 11 05 am

Or, they might be in a paragraph of text. Ideally, we'd be using plain language that wouldn't require explanations of terms outside the textual content. Due to various reasons, that doesn't always occur.

screen shot 2015-06-29 at 9 55 33 am

screen shot 2015-06-29 at 9 55 02 am

We have instances where rather than a icon, the text to be defined is underlined. However, in those instances, the interaction of tapping on that underlined text currently doesn't result in a tooltip or a pushover. The definition is given in a frame-like panel of the webpage.

eregs

Rephrased comments and questions from the previous issue that this was discussed in:

ielerol commented 9 years ago

For what it's worth, we do have an outstanding issue in eRegs to differentiate the underlines for definitions from the underlines for links. It wasn't a high enough priority to make it into the changes that will be rolled out in the next month, so we haven't done a lot of exploration, but the initial thought was to change the definition links to a dotted underline style. Which only works in this case because the eRegs unvisited hyperlinks are solid rather than dotted.

Although eRegs might not be the ideal model currently, I do think some kind of text-based visual distinction is less obtrusive than the minicon icons, when inline in text paragraphs. We've discussed also adding a faint background gray to the defined terms, lighter than the hover state gray.

nataliafitzgerald commented 9 years ago

DM Styling edits:

caheberer commented 7 years ago

Similar to tabs, are they needed and how do we want to document on the manual?

caheberer commented 7 years ago

This will be documented in #139