-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
button: cleanup logic in button component #87179
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
return ( | ||
<a | ||
{...props} | ||
ref={ref} | ||
href={href} | ||
aria-disabled={disabled} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
{...(external ? {target: '_blank', rel: 'noreferrer noopener'} : {})} |
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 wonder if we can reuse ExternalLink
in the future for this or something
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 can take a look if that is possible yeah, good call
This reverts commit 5488b39.
Small changes in the button components that either simplifies the logic or removes unused code in prep for introducing chonk styles.