#3334

Outline is clipped when GroupBoxVariant is Normal in Settings

OpenSLSYSLopened 1mo ago

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

  1. Open the Story example.
  2. Click on the Settings story.
  3. Change Group Variant to Normal.
  4. Focus the Switch via Tab or click.
  5. 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

0

No activity yet.