Skip to content

Commit dd0b862

Browse files
committed
Refactor cancel subscription checkbox for improved accessibility and UI consistency
1 parent 400c5c6 commit dd0b862

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

  • src/frontend/src/pages/SettingsPage/pages/PricingPlansPage

src/frontend/src/pages/SettingsPage/pages/PricingPlansPage/index.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,21 @@ export default function PricingPlansPage() {
280280
You have access {accessEndsMessage}
281281
</DialogDescription>
282282
</DialogHeader>
283-
284-
<Checkbox
285-
checked={cancelImmediately}
286-
onCheckedChange={(checked) =>
287-
setCancelImmediately(Boolean(checked))
288-
}
289-
>
290-
Cancel now (no refund)
291-
</Checkbox>
292-
283+
<div className="flex items-center space-x-2">
284+
<Checkbox
285+
id="cancel-now"
286+
checked={cancelImmediately}
287+
onCheckedChange={(checked) =>
288+
setCancelImmediately(Boolean(checked))
289+
}
290+
/>
291+
<label
292+
htmlFor="cancel-now"
293+
className="text-sm text-muted-foreground cursor-pointer"
294+
>
295+
Cancel now (no refund)
296+
</label>
297+
</div>
293298
<DialogFooter>
294299
<Button onClick={() => setCancelModalOpen(false)}>
295300
Keep subscription

0 commit comments

Comments
 (0)