themesberg / themesberg/flowbite-react

Tooltip is not centered when wrapping avatar inside avatar group

Open
#1,231 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:bug: bug confirmed
Dominant language
TypeScript
Stars
2.1k
Forks
506
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce

package.json

"flowbite": "^2.2.0",
"flowbite-react": "^0.7.2",
<Avatar.Group>
  <Tooltip content="Tooltip content" trigger="click">
    <Avatar size="xs" img="https://flowbite.com/docs/images/people/profile-picture-5.jpg" rounded stacked />
  </Tooltip>
</Avatar.Group>

Current behavior

Tooltip is not centered when wrapping avatar inside avatar group.

Screenshot 2024-01-14 at 18 48 39

Expected behavior

Tooltip should be centered when wrapping avatar inside avatar group, like another component.
For example tooltip wrapping button:

Screenshot 2024-01-14 at 19 03 23

Context

This problem only appears when the tooltip wraps around an avatar inside avatar group. For avatars without wrapping avatar group, there is no problem.

Screenshot 2024-01-14 at 19 27 16


  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the example from package.json using Tooltip around an Avatar inside Avatar.Group, then inspect the Tooltip, Avatar, and Avatar.Group components. Compare the grouped-avatar result with the button and ungrouped-avatar examples; done means the tooltip is centered in the grouped case without breaking the other cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, tailwindcss, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.