css icon indicating copy to clipboard operation
css copied to clipboard

Tooltips getting clipped on small screens

Open seshrs opened this issue 3 years ago • 2 comments

Describe the bug Hi! I noticed that when a tooltip is triggered on a small screen (like a phone), the tooltip can sometime get clipped (some of its content appears outside of the view). See the following screenshot I took from the Primer CSS docs page:

image

I am able to reproduce the same behavior with multiline tooltips as well.

I first noticed this behavior on Safari on iOS 15, but was also able to reproduce using the Chrome developer tools.

Additional context I couldn't find a past issue that discussed clipping tooltips. Is this just a limitation of CSS-only tooltips (without using JS)?

seshrs avatar Feb 01 '22 03:02 seshrs

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Jul 31 '22 04:07 github-actions[bot]

The issue still repro’s, ping to keep it alive.

seshrs avatar Jul 31 '22 06:07 seshrs

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Jan 27 '23 07:01 github-actions[bot]