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: use radix-ui for avatars #9633

Merged
merged 3 commits into from Apr 11, 2024
Merged

fix: use radix-ui for avatars #9633

merged 3 commits into from Apr 11, 2024

Conversation

mattkrick
Copy link
Member

@mattkrick mattkrick commented Apr 11, 2024

Description

fixes #9632

I broke the avatars trying to do a cheap fix. The right way to load fallbacks is using radix-ui, which has that functionality built into it + a ton of accessibility things, so this PR refactors all avatars to use radix-ui + tailwinds.

This also fixes some really ugly avatar related stuff like below

Screenshot 2024-04-11 at 11 34 45 AM Screenshot 2024-04-11 at 11 34 18 AM

Signed-off-by: Matt Krick <matt.krick@gmail.com>
@github-actions github-actions bot added size/l and removed size/m labels Apr 11, 2024
@@ -16,7 +16,7 @@ const AvatarWrapper = styled('button')({
borderRadius: 100,
marginLeft: 8,
padding: 4,
':focus': {
':focus-visible': {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i hate when the accessibility blue outline shows up when you click! it should show up when you tab, not click.

Signed-off-by: Matt Krick <matt.krick@gmail.com>
@mattkrick mattkrick merged commit 38c8e61 into master Apr 11, 2024
6 checks passed
@mattkrick mattkrick deleted the fix/avatar branch April 11, 2024 20:56
@github-actions github-actions bot mentioned this pull request Apr 11, 2024
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Persisted avatar on meeting header of solo updates
1 participant