Skip to content

fix(tooltip): tail notch on tooltip-left and tooltip-right with a pill bubble - #4759

Open
sulimanbenhalim wants to merge 3 commits into
saadeghi:masterfrom
sulimanbenhalim:fix-tooltip-side-tail-notch
Open

sulimanbenhalim wants to merge 3 commits into
saadeghi:masterfrom
sulimanbenhalim:fix-tooltip-side-tail-notch

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

on themes with a big field radius the side tooltips show a little step above and below the tail, the tail base is flat and pokes out where the pill curves in. moved the side tails 1px further in so it stays hidden.

example: https://play.tailwindcss.com/gQncpVXvKK

close #4757

@github-actions

Copy link
Copy Markdown

1 component changed. Basic playground: Before vs. After.

@saadeghi saadeghi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks but it won't look good on other themes.

Before/after:

Image See how the soft edges are sharp.

Maybe instead of hardcoding 1px or 2px use something like

clamp( 1px, calc(var(--radius-field) / 1rem * 1px), 2px )

so it will be based on the radius?

@saadeghi

Copy link
Copy Markdown
Owner

Also, I think tooltip-start and tooltip-end should be adjusted too.

Screenshot 2026-09-17 at 5 20 50 PM Screenshot 2026-09-17 at 5 22 30 PM

@github-actions

Copy link
Copy Markdown

1 component changed. Basic playground: Before vs. After.

@github-actions

Copy link
Copy Markdown

1 component changed. Basic playground: Before vs. After.

@sulimanbenhalim

Copy link
Copy Markdown
Contributor Author

pushed a follow up, the overlap and the start/end offsets follow the radius now (divided by a number, firefox computes the / 1rem * 1px form to 0). still not perfect on every theme, before and after per radius tier: https://play.tailwindcss.com/aghqAeTNcv

@saadeghi saadeghi self-assigned this Sep 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: FAB tooltip arrow

2 participants