Skip to content

Tooltip affecting height/width of components #1644

Description

@MartynasStrazdas

Describe the bug

Tooltip with stratakit theme affects height/width of components causing scrollbar to appear.

Steps to reproduce

  1. Place a fixed-width container on the page.
  2. Inside it, put a flex row with an icon button wrapped in a tooltip aligned to the right edge.
  3. Hover the button.
  4. Tooltip renders outside the container bounds and a horizontal scrollbar appears on the page.

Example using stratakit/mui:
https://stackblitz.com/edit/github-dhgkgb5d?file=src%2FApp.tsx

Expected behaviour without stratakit/mui:
https://stackblitz.com/edit/github-dhgkgb5d-f2tpdtrz?file=package.json,src%2FApp.tsx

Expected behavior

Tooltip does not expand parent components.

Link to minimal reproduction

https://stackblitz.com/edit/github-dhgkgb5d?file=src%2FApp.tsx

Environment and versions

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions