Commit e9e0ab74 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'small-flash-ux-improvement' into 'master'

Use 0.15s transition duration for flash close

See merge request gitlab-org/gitlab!24830
parents 3cda27b2 21226f50
......@@ -11,7 +11,7 @@ const FLASH_TYPES = {
const hideFlash = (flashEl, fadeTransition = true) => {
if (fadeTransition) {
Object.assign(flashEl.style, {
transition: 'opacity .3s',
transition: 'opacity 0.15s',
opacity: '0',
});
}
......
......@@ -40,7 +40,7 @@ describe('Flash', () => {
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', () => {
......
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