Skip to content

Custom style for checkboxes #116

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

Closed
ngeien opened this issue Oct 9, 2017 · 2 comments
Closed

Custom style for checkboxes #116

ngeien opened this issue Oct 9, 2017 · 2 comments

Comments

@ngeien
Copy link

ngeien commented Oct 9, 2017

Hi,
I would really appreciate if you could add a SPAN tag around or before the rendering of the valueLabel prop in Checkbox and CheckboxGroup components to better support custom styling of checkboxes. It would allow something like this:

input[type="checkbox"]:not(:checked) ~ span:before { content: ""; } input[type="checkbox"]:checked ~ span { content: "✕"; } input[type="checkbox"][disabled] ~ span { /* custom styling */ }

More information can be found at Stackoverflow.

Thanks.

@twisty
Copy link
Owner

twisty commented Oct 24, 2017

I see what you mean. I'll consider this.

More (although Bootstrap 4) at: twbs/bootstrap#23444

@twisty
Copy link
Owner

twisty commented Mar 20, 2019

Closing because old and proposed example deviates from the Bootstrap 3.x examples. Future versions will support Bootstrap 4, and think the updated markup will solve this problem.

@twisty twisty closed this as completed Mar 20, 2019
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

2 participants