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

checkedChildren and uncheckedChildren style overides #27

Open
evenstensberg opened this issue Oct 10, 2018 · 2 comments
Open

checkedChildren and uncheckedChildren style overides #27

evenstensberg opened this issue Oct 10, 2018 · 2 comments

Comments

@evenstensberg
Copy link

Hi! Currently the checkChildren and uncheckedChildren doesn't support classNames, as you render those as svgs. Will you support a way to do that?

@teddybee
Copy link

I have similar problem. The words for checked and unchecked children is 4-6 characters long and I can't set the width of the switch.

@delenzhang
Copy link

delenzhang commented Nov 7, 2018

image
<Switch onChange={this.onSwitchChange.bind(this, recode)} checkedChildren={'正常' + value} defaultChecked={value!==1} unCheckedChildren={'禁用'+ value} className={'hack-switch'} />;
.hack-switch { width: 54px; &.rc-switch-checked:after { left: 32px; } }

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

No branches or pull requests

3 participants