-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(plugin): SwitchProfileButton #3137
base: main
Are you sure you want to change the base?
Conversation
Hey there, I love the idea! |
variant="text-xs/medium" | ||
>{props.subtext}</Text> | ||
</>} | ||
aria-label={false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wha?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how Discord does it for the other buttons there. I am aware that ReviewDB does not do it this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went digging again to find where I took this code from and it looks like I stole it from this component, and it turns out I didn't steal all of the code
Now that I've looked at it, I agree that this can be improved, but I'm unsure as to how I should improve it.
I can't use the actual component for this as the aria-label can't be set separately, which is what I need to do as the tooltip text isn't a string.
Moves the View Main/Server Profile button out of the overflow menu
Some code was copied from ReviewDB
How it works:
Replaces the MenuItem components with the button, props are reused as-is by the button component
Moves the item out of the overflow menu component props and into the row of buttons
Suggestions for a different icon are welcome