Skip to content

Commit bcca382

Browse files
committed
Shorten the color fading time to 0.2s. Move the AnimatedToggleButton kind to the onyx.custom namespace.
1 parent bb52073 commit bcca382

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

v2/AnimatedToggleButton/AnimatedToggleButton.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.onyx-toggle-button.onyx-animated-toggle-button {
22
/* We need this so that the knob is positioned relatively to the toggle button */
33
position: relative;
4-
-webkit-transition: background-color 0.5s linear;
5-
-moz-transition: background-color 0.5s linear;
6-
-o-transition: background-color 0.5s linear;
7-
-ms-transition: background-color 0.5s linear;
4+
-webkit-transition: background-color 0.2s linear;
5+
-moz-transition: background-color 0.2s linear;
6+
-o-transition: background-color 0.2s linear;
7+
-ms-transition: background-color 0.2s linear;
88
}
99

1010
.onyx-toggle-button.onyx-animated-toggle-button .onyx-toggle-button-knob {

v2/AnimatedToggleButton/AnimatedToggleButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
An extension fo the ToggleButton kind that animates between the on and off position and allows actual dragging of the knob.
33
*/
44
enyo.kind({
5-
name: "onyx.AnimatedToggleButton",
5+
name: "onyx.custom.AnimatedToggleButton",
66
kind: "onyx.ToggleButton",
77
classes: "onyx-animated-toggle-button",
88
components: [

0 commit comments

Comments
 (0)