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

Fixed #90 -- Added support for switches. #162

Merged
merged 5 commits into from
Nov 5, 2023
Merged

Fixed #90 -- Added support for switches. #162

merged 5 commits into from
Nov 5, 2023

Conversation

smithdc1
Copy link
Member

@smithdc1 smithdc1 commented Nov 4, 2023

Added support for bootstrap5 switches.
https://getbootstrap.com/docs/5.1/forms/checks-radios/#switches

Here's how it looks on standard (vertical?) forms. Alignment seems ok to other inputs.
image

I need to investigate Horizontal forms.

image

I was expecting it to be more like this (with offsets). But that doesn't look quite right either!

image

Likely need to revisit #51 which was an attempt at fixing this.

@smithdc1 smithdc1 linked an issue Nov 4, 2023 that may be closed by this pull request
@smithdc1
Copy link
Member Author

smithdc1 commented Nov 4, 2023

image

This is how it looks now. It's a slightly wider input than for radio/checkboxes so I'm unsure about the alignment.

@smithdc1 smithdc1 merged commit 739f5b7 into main Nov 5, 2023
6 checks passed
@smithdc1 smithdc1 deleted the switches branch November 5, 2023 11:01
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

Successfully merging this pull request may close these issues.

Add support for Switches
1 participant