-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Updated checkboxes and radios to match bootstrap 5 #6633
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR would add the class form-check-input
for every theme e.g. semanticui.
Please adjust it, so the class will only be used for BT5.
Any suggestion on best way for checking what the theme is set to in the javascript, maybe an example in the code that's already doing this? |
We already do that quite often, a few hints: bootstrap-table/src/constants/index.js Lines 8 to 109 in ff06f54
https://github.com/wenzhixin/bootstrap-table/blob/develop/src/themes/foundation/bootstrap-table-foundation.js#L21-L37 bootstrap-table/src/bootstrap-table.js Line 1248 in 1a1c5cd
|
Actually I noticed this my self today using the Columns toolbar dropdown.
and indeed does not use the BS theme (if using BS). It would be great to have a way to have it generated as:
@UtechtDustin are you working on this yourself? |
Just for reference if someone wants a quick but hack'ish solution.
|
@marceloverdijk No, i'm not working on this issue right now. |
🤔Type of Request
🔗Resolves an issue?
N/A
📝Changelog
Updated checkboxes and radios to match Bootstrap 5 styling (see https://getbootstrap.com/docs/5.3/forms/checks-radios/).
This allows for other features like the color of the checkboxes/radios to match the bootstrap primary color when customized
💡Example(s)?
Before: https://live.bootstrap-table.com/code/Nickno95/14139
After: https://live.bootstrap-table.com/code/Nickno95/14140
☑️Self Check before Merge