1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

🐛 fix flickering buttons during modal transitions (#710)

no issue

- removes transition on `all` properties in favour of an explicit list, fixes the buttons flickering after the modal appears and the outline/text being visible when the modal disappears
- simplifies the liquid-fire transition so that elements being removed at slightly different times doesn't cause flickering when the modal is removed
This commit is contained in:
Kevin Ansfield 2017-05-23 17:45:25 +01:00 committed by Katharina Irrgang
parent 6e841064d2
commit b2c8db4b87
2 changed files with 2 additions and 6 deletions

View file

@ -14,6 +14,7 @@
fill: color(var(--lightgrey) l(-27%) blackness(+15%));
border-radius: 5px;
transition: all 0.2s ease;
transition-property: color, border-color, background, width, height;
-webkit-font-smoothing: subpixel-antialiased;
}

View file

@ -3,12 +3,7 @@ export default function () {
this.hasClass('fullscreen-modal-container'),
this.toValue(true),
this.use('fade', {duration: 150}),
this.reverse('explode', {
pick: '.fullscreen-modal',
use: ['fade', {duration: 80}]
}, {
use: ['fade', {duration: 150}]
})
this.reverse('fade', {duration: 150})
);
this.transition(