Commit 21226f50 authored by ddavison's avatar ddavison

Use 0.15s transition duration for flash close

parent d07867ab
...@@ -11,7 +11,7 @@ const FLASH_TYPES = { ...@@ -11,7 +11,7 @@ const FLASH_TYPES = {
const hideFlash = (flashEl, fadeTransition = true) => { const hideFlash = (flashEl, fadeTransition = true) => {
if (fadeTransition) { if (fadeTransition) {
Object.assign(flashEl.style, { Object.assign(flashEl.style, {
transition: 'opacity .3s', transition: 'opacity 0.15s',
opacity: '0', opacity: '0',
}); });
} }
......
...@@ -40,7 +40,7 @@ describe('Flash', () => { ...@@ -40,7 +40,7 @@ describe('Flash', () => {
expect(el.style['transition-property']).toBe('opacity'); expect(el.style['transition-property']).toBe('opacity');
expect(el.style['transition-duration']).toBe('0.3s'); expect(el.style['transition-duration']).toBe('0.15s');
}); });
it('sets opacity style', () => { it('sets opacity style', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment