From 71224bea75c8e925d5ab7003f8278e24bde428a2 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet206@gmail.com> Date: Fri, 3 May 2024 15:09:45 +0200 Subject: [PATCH] removed code about is-animating --- assets/js/theme/design-system/modal.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/assets/js/theme/design-system/modal.js b/assets/js/theme/design-system/modal.js index ce1d6a6b..8b68877e 100644 --- a/assets/js/theme/design-system/modal.js +++ b/assets/js/theme/design-system/modal.js @@ -2,7 +2,6 @@ import { focusTrap } from '../utils/focus-trap'; const CLASSES = { modalOpened: 'has-modal-opened', - isAnimating: 'is-animating', modalIsOpened: 'is-opened' }; @@ -57,12 +56,8 @@ class Modal { document.documentElement.classList[classAction](CLASSES.modalOpened); - setTimeout(() => { - document.documentElement.classList.remove(CLASSES.isAnimating); - - this.element.setAttribute('aria-hidden', !this.state.opened); - this.element.classList[classAction](CLASSES.modalIsOpened); - }, 0.2); + this.element.setAttribute('aria-hidden', !this.state.opened); + this.element.classList[classAction](CLASSES.modalIsOpened); } } -- GitLab