-
Notifications
You must be signed in to change notification settings - Fork 1
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
Danielle/482 notifications needs a way to exit the modal #609
Danielle/482 notifications needs a way to exit the modal #609
Conversation
Gridiron Survivor Application
Project name: Gridiron Survivor Application
Only deployments on the production branch are activated automatically. If you'd like to activate this deployment, navigate to your deployments. Learn more about Appwrite Function deployments.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…n-survivor into danielle/482-notifications-needs-a-way-to-exit-the-modal
…n-survivor into danielle/482-notifications-needs-a-way-to-exit-the-modal
…d syntax (label prop)
components/Alert/Alert.tsx
Outdated
@@ -5,17 +5,17 @@ import * as React from 'react'; | |||
import { cva, type VariantProps } from 'class-variance-authority'; | |||
|
|||
const alertVariants = cva( | |||
'relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground', | |||
'relative w-full rounded-lg border p-4 [&>svg~*]:ml-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground', |
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.
How come these styles were updated? This ticket only pertains towards the close button.
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.
@shashilo this styling was causing the button to be rendered distorted. I could not find another workaround.
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.
@shashilo this is now fixed
); | ||
const dismissButton = screen.getByTestId('dismiss-alert-btn'); | ||
fireEvent.click(dismissButton); | ||
expect(spyToast).toHaveBeenCalled(); |
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.
great job on the spy!
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.
Braydon and Shashi covered my other comments, so I've just left a couple of nits. Once the other requested changes from Braydon and Shashi are taken care of, I will approve this PR regardless of the status of my "nits".
@shashilo this would involve creating a new button style rather than using an existing ("ghost") style. Are you OK with that? |
@Danielle254 the buttons can accept additional classNames where defined. Since this is only being used in one place (currently) I'd just adjust the button itself. Or if @shashilo prefers, we can edit the |
…n-survivor into danielle/482-notifications-needs-a-way-to-exit-the-modal
143ba37
to
7453829
Compare
…dding left on svg inside button
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.
LGTM 🚀
Before
muted
for better contrastghost
and standardicon
size