From bd8f9e5d7fc4e722329530d14a9cecbc4e2ff1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Fri, 19 Jan 2024 21:59:14 +0100 Subject: [PATCH] Do not flash loading class in modal refresh --- src/definitions/modules/modal.js | 3 --- src/definitions/modules/modal.less | 6 ------ src/themes/default/modules/modal.variables | 6 ------ 3 files changed, 15 deletions(-) diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index bc2ae995e3..43673aa08a 100755 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -903,7 +903,6 @@ }, cacheSizes: function () { - $module.addClass(className.loading); var scrollHeight = $module.prop('scrollHeight'), modalWidth = $module.outerWidth(), @@ -921,7 +920,6 @@ }); module.cache.topOffset = -(module.cache.height / 2); } - $module.removeClass(className.loading); module.debug('Caching modal and container sizes', module.cache); }, helpers: { @@ -1503,7 +1501,6 @@ blurring: 'blurring', inverted: 'inverted', legacy: 'legacy', - loading: 'loading', scrolling: 'scrolling', undetached: 'undetached', front: 'front', diff --git a/src/definitions/modules/modal.less b/src/definitions/modules/modal.less index 274fc6d36a..a2aa0a53f8 100755 --- a/src/definitions/modules/modal.less +++ b/src/definitions/modules/modal.less @@ -391,12 +391,6 @@ States *******************************/ -.ui.loading.modal { - display: block; - visibility: hidden; - z-index: @loadingZIndex; -} - .ui.active.modal { display: block; } diff --git a/src/themes/default/modules/modal.variables b/src/themes/default/modules/modal.variables index fefb01f2f7..4a20edfc36 100755 --- a/src/themes/default/modules/modal.variables +++ b/src/themes/default/modules/modal.variables @@ -104,12 +104,6 @@ /* Coupling */ @invertedBoxShadow: 1px 3px 10px 2px rgba(0, 0, 0, 0.2); -/* ------------------- - States --------------------- */ - -@loadingZIndex: -1; - /* ------------------- Types -------------------- */