Docs-website: Change the "tip" callout component styling to look more like the old Doc site tips

Created on 26 Jan 2021  路  3Comments  路  Source: newrelic/docs-website

This is to change the global component for tips to look closer to the Old Docs Site tip styling as that was approved and championed by Lew. So to align with his concern for how we present tips, we'll just go back that original style. The callout needs to match the existing callout as closely as possible, I'd still suggest we maintain the current color palette for consistency.

Tip Styling:

  • add the full border (thick border on the left, thin border on the top, right, and bottom) and leave the rest of the component the same.
  • the tip title should be the same color as the wider border line
  • the tips background color should be a shade of the border line.
  • ensure both light and dark mode are considered.
  • ensure we apply this style to all callout variant types

Screen Shot 2021-01-25 at 7 22 00 PM

Screen Shot 2021-01-25 at 7 22 09 PM

New design that we need to change

Screen Shot 2021-01-25 at 7 24 55 PM

Screen Shot 2021-01-25 at 7 25 50 PM

Screen Shot 2021-01-25 at 7 41 33 PM

Screen Shot 2021-01-25 at 7 41 37 PM

catch-all launch-blocker 1

Most helpful comment

I wasn't in those conversations with Lew, so I don't know what exactly he cares about. However, my thinking is that we could just add the full border (thick border on the left, thin border on the top, right, and bottom) and leave the rest of the component the same.

If the callout needs to match the existing callout as closely as possible, I'd still suggest we maintain the current color palette for consistency.

All 3 comments

We'll need to see if we can get a dark mode style for those "old style" tips.

@jerelmiller yeah good call, perhaps @djsauble can make a recommendation, currently we just flip the background color to be a shade darker then the site background color, we could probably lighten those up to be closer to the border colors of the tips boxes. I think we can take the original tip and just add a little color to it for both modes so it has a little bit of "pop" and stands out in both modes.

I wasn't in those conversations with Lew, so I don't know what exactly he cares about. However, my thinking is that we could just add the full border (thick border on the left, thin border on the top, right, and bottom) and leave the rest of the component the same.

If the callout needs to match the existing callout as closely as possible, I'd still suggest we maintain the current color palette for consistency.

Was this page helpful?
0 / 5 - 0 ratings