#3334
Outline is clipped when GroupBoxVariant is Normal in Settings
Description
When Settings uses with_group_variant(GroupVariant::Normal), the focus outline (focus ring) of interactive fields inside a SettingItem (e.g. SettingField::switch) is partially clipped by the surrounding padding.
Environment
- gpui-pre: v0.3.7
- gpui-component: v0.7.0
- Platform: Windows 11 25H2
Steps to Reproduce
- Open the Story example.
- Click on the Settings story.
- Change Group Variant to Normal.
- Focus the Switch via Tab or click.
- See error: the focus outline is partially clipped by the surrounding padding.
Screenshots
Expected
The focus outline of any interactive field inside a SettingItem should be rendered in full regardless of the GroupBoxVariant, i.e. the Normal variant should either reserve enough space for the outline or not clip at its padding edge.
Actual
With GroupBoxVariant::Normal, the outline is partially clipped by the surrounding padding / container bounds, so the focus ring appears broken.
Activity
0No activity yet.