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 add endIconClassName in button #3893

Merged
merged 6 commits into from
Aug 24, 2022
Merged

Conversation

agustif
Copy link
Contributor

@agustif agustif commented Aug 17, 2022

What does this PR do?

  • Adds support for endIconClassName in Button

Required for https://github.com/calcom/console/pull/30

Fixes #3894

@vercel
Copy link

vercel bot commented Aug 17, 2022

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

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Aug 24, 2022 at 8:30AM (UTC)
1 Ignored Deployment
Name Status Preview Updated
swagger ⬜️ Ignored (Inspect) Aug 24, 2022 at 8:30AM (UTC)

@agustif agustif changed the title fix add tooltip provider to tooltip fix add endIconClassName in button Aug 18, 2022
@@ -130,7 +132,9 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
</svg>
</div>
)}
{EndIcon && <EndIcon className="-mr-1 inline h-5 w-5 ltr:ml-2 rtl:mr-2" />}
{EndIcon && (
<EndIcon className={classNames("-mr-1 inline h-5 w-5 ltr:ml-2 rtl:mr-2", endIconClassName || "")} />
Copy link
Member

Choose a reason for hiding this comment

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

LGTM :) NIT this could follow the standard we have been using with

endIconClassName && endIconClassName

Copy link
Member

Choose a reason for hiding this comment

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

@agustif do you wanna add this or nah?

alternatively, @sean-brydon can you use the "suggest" feature and offer a solution here?

@PeerRich PeerRich merged commit bfe780e into main Aug 24, 2022
@PeerRich PeerRich deleted the fix/ui-button-tooltip-console branch August 24, 2022 08:37
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 requires TooltipProvider (Radix-UI upgrade)
4 participants