Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips clipped in action-pad #11261

Open
2 of 6 tasks
MikeTschudi opened this issue Jan 10, 2025 · 4 comments
Open
2 of 6 tasks

Tooltips clipped in action-pad #11261

MikeTschudi opened this issue Jan 10, 2025 · 4 comments
Labels
0 - new New issues that need assignment. ArcGIS Solutions Issues logged by ArcGIS Solutions team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. has workaround Issues have a workaround available in the meantime. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.

Comments

@MikeTschudi
Copy link
Member

Check existing issues

Actual Behavior

When one hovers over an icon in an action pad, one gets a vertical scrollbar because the tooltip is appearing and being hidden:
image

Expected Behavior

Expect tooltip to escape action-pad boundaries and appear:
image

https://codepen.io/miketschudi/pen/bNbvByq?editors=1000

Reproduction Sample

https://codepen.io/miketschudi/pen/wBwmoZg?editors=1000

Reproduction Steps

please see reproduction sample codepen

Reproduction Version

3.0.0-next.95

Relevant Info

Windows 11 Enterprise; Chrome 131

Regression?

3.0.0-next.1

Priority impact

impact - p3 - not time sensitive

Impact

Currently only used in a prototype for release in the second AGO release of 2025.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Solutions

@MikeTschudi MikeTschudi added 0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Jan 10, 2025
@github-actions github-actions bot added ArcGIS Solutions Issues logged by ArcGIS Solutions team members. calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive labels Jan 10, 2025
@jcfranco
Copy link
Member

This is caused by #10241 (3.0 breaking change), where components with floating-ui elements may need overlay-positioning="fixed" in scrolling containers. I'm not sure whether the scroller is intentional though.

@driskull Do you recall if action-pad is meant to have a scrollbar? I noticed overflow has been present since its initial port.

As a workaround, you can set overlay-positioning="fixed" on tooltips to help them escape their container.

@jcfranco jcfranco added the has workaround Issues have a workaround available in the meantime. label Jan 11, 2025
@macandcheese
Copy link
Contributor

I think you could also move the Tooltips elements outside the Action Bar, which seems to resolve it while still allowing overlay-positioning="absolute" (default).

@MikeTschudi
Copy link
Member Author

Thank you @jcfranco and @macandcheese for the easy workarounds! Completely solves the issue for my project.
image

@driskull
Copy link
Member

Do you recall if action-pad is meant to have a scrollbar?

No, its not designed to scroll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Solutions Issues logged by ArcGIS Solutions team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. has workaround Issues have a workaround available in the meantime. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

4 participants