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

Cody/refine toast styling #607

Merged
merged 23 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2fd3cd9
modified position of Toaster
kepsteen Oct 9, 2024
50c61bd
added max-width to alert
kepsteen Oct 9, 2024
1638dd4
changed to margin to prevent padding added to dismiss button
kepsteen Oct 9, 2024
717455d
modified alert component to include dismiss button
kepsteen Oct 9, 2024
9827be6
added test for dismiss button in AlertNotification.test.tsx
kepsteen Oct 9, 2024
d4fddd2
added type assertion for key of AlertVariants in AlertNotification.te…
kepsteen Oct 9, 2024
8e023f7
added update dependencies
kepsteen Oct 10, 2024
797e30a
added test id to button
kepsteen Oct 10, 2024
dc8349e
removed dismiss button
kepsteen Oct 12, 2024
f9c948b
reverted change from margin to padding
kepsteen Oct 13, 2024
d0cec84
reverted changes to package.json , package-lock.json and pnpm-lock.yaml
kepsteen Oct 14, 2024
8ca3440
removed unused screen import
kepsteen Oct 14, 2024
da43c72
Merge branch 'develop' into Cody/refine-toast-styling
kepsteen Oct 14, 2024
9060888
added more offset to toaster
kepsteen Oct 14, 2024
65eb46c
add specific max-width to toast
kepsteen Oct 16, 2024
b0223ac
Merge branch 'develop' into Cody/refine-toast-styling
kepsteen Oct 17, 2024
b6a6e28
fix: toast placement issue
kepsteen Oct 22, 2024
9cd9614
Merge branch 'develop' into Cody/refine-toast-styling
shashilo Oct 23, 2024
4eb8308
Merge branch 'develop' into Cody/refine-toast-styling
kepsteen Oct 30, 2024
fcb1e29
Merge branch 'develop' into Cody/refine-toast-styling
kepsteen Oct 30, 2024
cc1b144
Trigger Vercel deployment
kepsteen Oct 31, 2024
a38c21f
make a change to trigger deployment
kepsteen Nov 2, 2024
2071393
reverse the change
kepsteen Nov 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const RootLayout = ({
</a>
</div>
</main>
<Toaster />
<Toaster position="bottom-left" />
</AuthContextProvider>
</ErrorBoundary>
</body>
Expand Down
2 changes: 1 addition & 1 deletion components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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 md:max-w-[25rem] rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground',
{
variants: {
variant: {
Expand Down