-
Notifications
You must be signed in to change notification settings - Fork 184
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 back button instead of X #49
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/components/Button.tsx
Outdated
@@ -63,7 +63,7 @@ interface IconButtonProps { | |||
export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps & ComponentProps<typeof BaseButton>>( | |||
function IconButton({ icon: Icon, iconProps, ...props }: IconButtonProps & ComponentProps<typeof BaseButton>, ref) { | |||
return ( | |||
<SecondaryButton {...props} ref={ref}> | |||
<SecondaryButton {...props} ref={ref} style={{ transform: 'translateY(1.75px)' }}> |
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.
put this in a styled
wrapper instead of doing the inline style
nit - is it possible to accomplish this with some other tool? translate can be a little unexpected. It's better to use margin/padding/positioning in most cases. Not important to figure this out if you're busy.
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We use an X icon to close dialog tabs, which creates a double X when the widget is hosted in an integrator modal.
Previously:
Now: