Skip to content

Commit

Permalink
refactor(ui): optimize classNames in AlertDialog components
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Jan 14, 2025
1 parent 443c3eb commit 52342f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-lemons-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tszhong0411/ui': patch
---

Optimize classNames in AlertDialog components
4 changes: 2 additions & 2 deletions packages/ui/src/alert-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const AlertDialogFooter = (props: AlertDialogFooterProps) => {

return (
<div
className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)}
className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}
{...rest}
/>
)
Expand Down Expand Up @@ -105,7 +105,7 @@ export const AlertDialogCancel = (props: AlertDialogCancelProps) => {

return (
<AlertDialogPrimitive.Cancel
className={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)}
className={cn(buttonVariants({ variant: 'outline' }), className)}
{...rest}
/>
)
Expand Down

0 comments on commit 52342f1

Please sign in to comment.