File tree Expand file tree Collapse file tree
packages/kumo/src/components/input-group Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @cloudflare/kumo " : patch
3+ ---
4+
5+ Fix ` InputGroup ` label wrappers to enforce ` mb-0 ` , preventing inherited label margins from shifting layout and click-target overlays.
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ const Root = forwardRef<
220220 < label
221221 htmlFor = { inputId }
222222 // Positioned behind children (z-0) so it catches clicks on empty space
223- className = "absolute inset-0 z-0 cursor-text"
223+ className = "absolute inset-0 z-0 cursor-text !mb-0 "
224224 aria-hidden = "true"
225225 />
226226 ) }
@@ -283,7 +283,7 @@ const Root = forwardRef<
283283 < label
284284 htmlFor = { inputId }
285285 // Positioned behind children (z-0) so it catches clicks on empty space
286- className = "absolute inset-0 z-0"
286+ className = "absolute inset-0 z-0 !mb-0 "
287287 aria-hidden = "true"
288288 />
289289 { children }
@@ -293,7 +293,7 @@ const Root = forwardRef<
293293 < label
294294 ref = { forwardedRef as React . Ref < HTMLLabelElement > }
295295 { ...dataProps }
296- className = { containerClassName }
296+ className = { cn ( containerClassName , "!mb-0" ) }
297297 { ...rest }
298298 >
299299 { children }
You can’t perform that action at this time.
0 commit comments