-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Fix form switch glitch #38109
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
base: main
Are you sure you want to change the base?
Fix form switch glitch #38109
Conversation
|
Or vice versa - rectangular switch with a square instead of a circle. |
|
I think these are fine to square off, but yes, it'd be better if the embedded SVG was also updated when rounded corners are disabled. |
7fb6f49 to
61478ad
Compare
|
Alright @maciek-szn and @mdo, I have updated according to your suggestion. When
I just realized that in #38277 the same thing was fixed a few hours ago… |
55352bd to
0c9aeaa
Compare
|
@mdo Would you mind reviewing this? |
`$enable-rounded` turns round corners into sharp edges. For consistency, this should apply to the form switch component, too. The form switch or toggle component should always be rounded even when `$enable-rounded: false`. A rectangular toggle may be thinkable but requires additional design effort.
|
Compared to #38277, this PR would require us to wait for v5.4.0 as there's a new Sass variable being added here. Will think on it more and decide soon! |
Description
The form switch or toggle component is in limbo state when
$enable-rounded: false. The box is rectangular while the toggle is round. Just like this:Motivation & Context
This change fixes the bug where a form switch is displayed as rectangle with a round toggle image.
Please see also https://gregorw.github.io/bootstrap-switch-bugfix/.
Type of changes
Checklist
npm run lint)Live previews
Related issues