]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Widen custom switch component (#42460)
authorMark Otto <markd.otto@gmail.com>
Wed, 3 Jun 2026 20:57:39 +0000 (13:57 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2026 20:57:39 +0000 (13:57 -0700)
Increase --switch-width multiplier from 1.5 to 1.75 of the switch
height for a wider track.

scss/forms/_switch.scss

index 04a03c063b534a54205d9108defc09f71de63c25..5b946edd10dabf9f0f42be4d2327614e5694695a 100644 (file)
@@ -10,7 +10,7 @@ $switch-tokens: () !default;
 $switch-tokens: defaults(
   (
     --switch-height: 1.25rem,
-    --switch-width: calc(var(--switch-height) * 1.5),
+    --switch-width: calc(var(--switch-height) * 1.75),
     --switch-padding: .0625rem,
     --switch-margin-block: .125rem,
     --switch-bg: var(--bg-3),