Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Switch] 希望增加Switch组件变量开关按钮背景颜色开启和关闭态独立背景颜色的控制 #2635

Open
xlsqwg opened this issue Dec 16, 2024 · 2 comments
Labels
feature request Request new feature

Comments

@xlsqwg
Copy link

xlsqwg commented Dec 16, 2024

Which Component Need Enhancement 期望新增功能的组件

  • Switch

What does the proposed API look like 期望支持的API

Feature Description 开关按钮背景颜色开启和关闭态独立背景颜色的控制

Additional information a67ac2ff-d92c-4761-81bf-e5ce296ba642

// 开关按钮背景颜色
$color-switch_knob-bg-default: rgba(var(--semi-white), 1);

目前只有一个变量,不能分别设置开启态和关闭态下的背景颜色

@xlsqwg xlsqwg added the feature request Request new feature label Dec 16, 2024
@pointhalo
Copy link
Collaborator

image

确认一下,你希望定制的是,knob,白色这个圆在 开/关 状态下的背景色?

@xlsqwg
Copy link
Author

xlsqwg commented Dec 17, 2024

image

确认一下,你希望定制的是,knob,白色这个圆在 开/关 状态下的背景色?

是的😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

2 participants