Skip to content

Commit a185dd9

Browse files
authored
fix(web): give dialog titles a readable line height (#30527)
1 parent 87f3d93 commit a185dd9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/web/src/components/ui/alert-dialog.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function AlertDialogFooter({
110110
function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.Title.Props) {
111111
return (
112112
<AlertDialogPrimitive.Title
113-
className={cn("wrap-anywhere shrink-0 font-semibold text-xl leading-none", className)}
113+
className={cn("wrap-anywhere shrink-0 font-semibold text-xl leading-snug", className)}
114114
data-slot="alert-dialog-title"
115115
{...props}
116116
/>

‎apps/web/src/components/ui/dialog.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function DialogFooter({
169169
function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {
170170
return (
171171
<DialogPrimitive.Title
172-
className={cn("wrap-anywhere font-semibold text-xl leading-none", className)}
172+
className={cn("wrap-anywhere font-semibold text-xl leading-snug", className)}
173173
data-slot="dialog-title"
174174
{...props}
175175
/>

‎apps/web/src/components/ui/sheet.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
142142
function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) {
143143
return (
144144
<SheetPrimitive.Title
145-
className={cn("font-semibold text-xl leading-none", className)}
145+
className={cn("font-semibold text-xl leading-snug", className)}
146146
data-slot="sheet-title"
147147
{...props}
148148
/>

0 commit comments

Comments
 (0)