zendeskgarden / react-components

:seedling: garden React components
https://zendeskgarden.github.io/react-components/
Apache License 2.0
1.1k stars 89 forks source link

fix(tooltips): fix arrow position when using `end-bottom` placement #1902

Closed ze-flo closed 2 months ago

ze-flo commented 2 months ago

Description

Fixes a regression created in https://github.com/zendeskgarden/react-components/pull/1882

Screenshot 2024-08-21 at 12 16 43 PM

Detail

For example:

The arrow of a small tooltip using end-bottom placement will extend past the container's boundaries because of the border-radius

Before

Screenshot 2024-08-21 at 12 10 51 PM

After

Screenshot 2024-08-21 at 12 12 12 PM

Checklist