Skip to content

switch component css broken on dark theme #35331

@guiohm

Description

@guiohm

Reproduction link

https://ant.design/components/switch/?theme=dark

Steps to reproduce

Un-toggle a switch with text.

What is expected?

background should be gray, and we should see the text.

What is actually happening?

the background is white when switch is off, same as the text, so we cannot see it.

Environment Info
antd 4.20.1
React 18
System win
Browser chromium

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions