Skip to content

Commit 9643c8f

Browse files
committed
Restore shared sm-radio transition to 0.4s
Fixes #72
1 parent 3f2dede commit 9643c8f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/js/customizer.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/_js/customizer/scss/controls/_radio-group.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
position: relative;
4141
cursor: pointer;
42-
transition: all 1s ease;
42+
transition: all 0.4s ease;
4343

4444
color: inherit;
4545
background: var(--sm-color-palette-neutral-color-1);

tests/js/radio-group-style.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const runRadioGroupStyleTests = async ( assert ) => {
99
assert.ok( labelBlockMatch, 'expected to find the shared sm-radio-group label rule' );
1010
assert.ok( checkedLabelBlockMatch, 'expected to find the shared checked label rule' );
1111
assert.ok(
12-
/transition\s*:\s*all\s+1s\s+ease\s*;/.test( labelBlockMatch[1] ),
13-
'shared sm-radio-group labels should use the temporary 1s inspection transition'
12+
/transition\s*:\s*all\s+0\.4s\s+ease\s*;/.test( labelBlockMatch[1] ),
13+
'shared sm-radio-group labels should use the 0.4s transition timing'
1414
);
1515
assert.ok(
1616
! /&:before\s*\{/.test( checkedLabelBlockMatch[1] ),

0 commit comments

Comments
 (0)