-
-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
Steps to reproduce
- Place a
ShadInputFormFieldinside aShadAccordionItem - Focus the input field
- Observe that the focus ring is clipped/cut off
Expected results
The focus ring should be fully visible around the input field.
Actual results
The focus ring is clipped by the accordion's internal SizeTransition which uses ClipRect.
Root cause
The ShadAccordionItem uses SizeTransition for the expand/collapse animation. SizeTransition internally uses ClipRect which clips any content that overflows the bounds - including focus rings that extend slightly beyond the widget's boundary.
Suggested solution
Add a clipBehavior parameter to ShadAccordion and ShadAccordionItem (similar to ShadCard) that allows users to control or disable clipping. Alternatively, add small internal padding to accommodate focus rings.
Workaround
Add horizontal padding (2px) around accordion content:
ShadAccordionItem(
value: 0,
title: const Text('Title'),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 2),
child: ShadInputFormField(...),
),
),shadcn_ui version
0.39.14
Platform
macOS, Web
Screenshots

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels