Skip to content

Commit 62bc369

Browse files
author
Josh Palmer
committed
Modified CSS
Modified CSS to position ON and OFF left and right of the button at all times.
1 parent e07c5c8 commit 62bc369

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

v2/AnimatedToggleButton/AnimatedToggleButton.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
}
1414

1515
.onyx-toggle-button.onyx-animated-toggle-button .onyx-toggle-content.off {
16-
margin-left: 30px;
16+
position:absolute;
17+
left:24px;
1718
}
1819

1920
.onyx-toggle-button.onyx-animated-toggle-button .onyx-toggle-content.on {
20-
margin-right: 30px;
21+
position:absolute;
22+
right:24px;
2123
}

0 commit comments

Comments
 (0)