Blueprint: Tooltips display issue with overflow: hidden

Created on 13 Jan 2017  路  5Comments  路  Source: palantir/blueprint

Bug report

  • __Package version(s)__: @blueprintjs/[email protected]
  • __Browser and OS versions__: Chromium (Electron) on Windows 10

Steps to reproduce

  1. Use Tooltip (with dark theme, if this is important, I guess not)
  2. Check its appearance
  3. Agree that it could look better

Actual behavior

Top left and right edges of tooltip are not rounded, while bottom ones are. Bottom padding seems way to much:

tooltip-2

Expected behavior

All edges rounded, or none. Text centered.

not a bug

Most helpful comment

The first CSS rule in my single-page app is the following

... that is an overly general global rule. It doesn't seem worth it to write Blueprint component CSS in a way that is defensive against such global styling. Surely there are more specific selectors for your overflow: hidden rule which would solve your scrollbar issues?

All 5 comments

The first CSS rule in my single-page app is the following

  /* Gets rid of any extra scrollbars added by the browser */

  * {
    overflow: hidden;
  }

If I comment that out, tooltips look as they should, i.e. as in the docs.

The first CSS rule in my single-page app is the following

... that is an overly general global rule. It doesn't seem worth it to write Blueprint component CSS in a way that is defensive against such global styling. Surely there are more specific selectors for your overflow: hidden rule which would solve your scrollbar issues?

A non-inline tooltip may solve your problem, but generally agree that * { overflow: hidden; } is gonna cause you some weird behavior eventually

yeah that's a terrifying way to start your stylesheet and is guaranteed to cause problems with anything that relies on non-static positioning.

Thanks guys for the hints!

Yepp, it's easy to see that I am a CSS beginner (and I'm not sure whether I will ever like it).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

giladgray picture giladgray  路  3Comments

tgreenwatts picture tgreenwatts  路  3Comments

adidahiya picture adidahiya  路  3Comments

shahzeb1 picture shahzeb1  路  3Comments

Goddak picture Goddak  路  3Comments