Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): top-align LemonRadio when radioPosition is top (#68969)

Thiago Salvatore17a94737be27
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 5263d433e5fd..94a8f2cac306 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -3721,9 +3721,9 @@ snapshots:
lemon-ui-lemon-radio--with-descriptions--light:
hash: v1.k794b7964.3e639bf0e25f16fd5e76dc10828c467bdcc8c712268c357f9f6e779b7a864293.prtOk3XEPPrhiz58VmRXjDQWAg2OeyMS7xo0Dp2qGTM
lemon-ui-lemon-radio--with-top-position--dark:
- hash: v1.k794b7964.cdb4e698dcac153bf51cd8c30326b5498450205de5c5cd1bd461988958f7507f.CGYvyK9UWkoJofwr95HykTiCzvRd4ZQgUe_i3WfYofc
+ hash: v1.k794b7964.cbdaf5c719135883c71ac9f809ccfe80effebb96b46fb3c2850ec7ea4f6cd653.ozny5Fk_Y_VEj7KFLAk72ntAwy71cEmEVTys8tNY6xA
lemon-ui-lemon-radio--with-top-position--light:
- hash: v1.k794b7964.e7f395c74052dd6efe5905bfa7599861360861e7e56f7c36fda0992fe14cd912.RO2bc0raF2jQelST0h1gzixqFyFvaItkHujYiYL4Y1o
+ hash: v1.k794b7964.ef5ce23419a1ec9f2738364653dbec20df82b8c265b77fe6c812cd1ca01de0d8.WzDlniaT42czh46Wc3VdHjy3A1PiXeBxPLmWosnAK74
lemon-ui-lemon-rich-content-editor--empty-lemon-rich-content-editor--dark:
hash: v1.k794b7964.d7754632d295d95504cabf047b7326492d9a71945b0f5246f3f2bb9df305adab.w5pvt_kMv9ADXYnLfS9gA-MkDhopZtw6zW0sluJrElI
lemon-ui-lemon-rich-content-editor--empty-lemon-rich-content-editor--light:
diff --git a/frontend/src/lib/lemon-ui/LemonRadio/LemonRadio.tsx b/frontend/src/lib/lemon-ui/LemonRadio/LemonRadio.tsx
index 90d2cf7e0855..474c45380e18 100644
--- a/frontend/src/lib/lemon-ui/LemonRadio/LemonRadio.tsx
+++ b/frontend/src/lib/lemon-ui/LemonRadio/LemonRadio.tsx
@@ -42,9 +42,11 @@ export function LemonRadio<T extends React.Key>({
<label
key={value}
className={clsx(
- 'grid items-center gap-x-2 grid-cols-[min-content_auto] text-sm',
+ 'grid gap-x-2 grid-cols-[min-content_auto] text-sm',
disabledReason ? 'text-secondary cursor-not-allowed' : 'cursor-pointer',
{
+ // baseline tracks the label's first text line even when the
+ // label JSX uses its own font size or line-height
'items-baseline': radioPosition === 'top',
'items-center': radioPosition === 'center' || !radioPosition,
}