css
css copied to clipboard
Tooltips getting clipped on small screens
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:
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)?
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.
The issue still repro’s, ping to keep it alive.
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.