Skip to content

Commit

Permalink
Merge pull request #482 from wpmudev/SUI-325
Browse files Browse the repository at this point in the history
fix(toggles): Slider element not aligning correctly when label or description or both are not present.
  • Loading branch information
iamleigh authored Mar 22, 2022
2 parents 884727a + 5b7454f commit f703215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/scss/shared-ui/_toggles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
transition: 0.2s linear;
}

&:last-child,
&.sui-toggle-slider--only {
position: relative;
}

~ .sui-toggle-label,
~ .sui-description {
margin-left: #{$toggle-width + math.div($sui-gutter-md, 2)};
Expand Down

0 comments on commit f703215

Please sign in to comment.