themesberg / themesberg/flowbite-react
Tooltip is not centered when wrapping avatar inside avatar group
Nobody has claimed this yet.
- 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.
Expected behavior
Tooltip should be centered when wrapping avatar inside avatar group, like another component.
For example tooltip wrapping button:
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.
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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