Skip to content

[Bug]: Switch inside Field doesn't align with the Field label #25314

@behowell

Description

@behowell

Library

React Components / v9 (@fluentui/react-components)

System Info

N/A

Are you reporting Accessibility issue?

no

Reproduction

https://react.fluentui.dev/?path=/docs/components-field--default#component-examples

Bug Description

Actual Behavior

Switch is indented from its field label, and looks misaligned:

image

Found in review of PR updating the VR tests of field: #25263 (comment)

Expected Behavior

Switch should be left-aligned.

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions