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

Fix the tooltip centered when wrapping an avatar inside an avatar group #1232

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

newarifrh
Copy link
Contributor

Summary

Make the tooltip centered on the avatar inside the avatar group.

Motivation

When using a tooltip for an avatar inside an avatar group, the tooltip is not centered. This issue occurs only on avatars inside the avatar group.

Changes Made

Added "tooltip" property to avatar theme.

Use of "tooltip" property based on "stacked" parameter. If "stacked=true" then the tooltip property will be sent for customization if using a tooltip.

However, if you keep using stacked without a tooltip, the behavior will remain the same.

Reference

fix #1231


Copy link

vercel bot commented Jan 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 1:22am

Copy link

codecov bot commented Jan 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7461173) 99.54% compared to head (5802e89) 97.35%.
Report is 195 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1232      +/-   ##
==========================================
- Coverage   99.54%   97.35%   -2.20%     
==========================================
  Files         163      216      +53     
  Lines        6621     9230    +2609     
  Branches      401      539     +138     
==========================================
+ Hits         6591     8986    +2395     
- Misses         30      244     +214     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip is not centered when wrapping avatar inside avatar group
1 participant