vendor/assets/stylesheets/foundation/components/_switches.scss in foundation-rails-5.4.1.0 vs vendor/assets/stylesheets/foundation/components/_switches.scss in foundation-rails-5.4.2.0

- old
+ new

@@ -61,11 +61,15 @@ } // So that we don't need to recreate the form with any JS, we use the // existing checkbox or radio button, but we cleverly position and hide it. input { - display: none; + opacity: 0; + position: absolute; + top: 9px; + left: 10px; + padding:0; & + label { margin-left: 0; margin-right: 0; } } // The paddle for the switch is created from an after psuedoclass @@ -180,18 +184,21 @@ $transition-ease: $switch-paddle-transition-ease, $height: $switch-height-med, $paddle-bg: $switch-paddle-bg, $active-color: $switch-active-color, $radius:false, - $base-style:true) { + $base-style:true) { + padding: 0; + border: none; + position: relative; @include switch-base($transition-speed, $transition-ease); @include switch-size($height); @include switch-style($paddle-bg, $radius, $base-style); } @include exports("switch") { @if $include-html-form-classes { - div.switch { + .switch { @include switch; // Large radio switches &.large { @include switch-size($switch-height-lrg); }