Skip to content

Dark theme doesn't work on some components like Input, Select .etc #3739

@yangss3

Description

@yangss3
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.1

Environment

Vue 3.x Vite 2.x

Reproduction link

https://2x.antdv.com/components/form-cn

Steps to reproduce

Import the CSS file 'antd.dark.css' in main.js

What is expected?

The components display in dark theme

What is actually happening?

Some components display in dark theme, but some not, like Input, Select, DatePicker .etc


If I want to switch theme dynamically in JavaScript(TailWindCSS do it by toggling the 'dark' class on html root elememt), what should I do?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions