From f36c96602dbbfa81c6e004c6ed54f8f23f2783fe Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 27 Jan 2024 06:47:29 -0600 Subject: [PATCH] CSS: ck-z-modal -> ck-z-panel (for v41.0.0) See also: - https://github.com/ckeditor/ckeditor5/blob/v41.0.0/CHANGELOG.md > ui: The --ck-z-modal CSS custom property was renamed to --ck-z-panel. > We recommend updating custom CSS and integrations that use this custom > property to avoid presentation issues. See #14973. - https://github.com/ckeditor/ckeditor5/issues/14973 --- src/utils.js | 2 +- theme/mathform.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index 335c2df6e..f4aed49a1 100644 --- a/src/utils.js +++ b/src/utils.js @@ -228,6 +228,6 @@ function moveElement( parent, child ) { child.style.position = 'absolute'; child.style.left = left + 'px'; child.style.top = top + 'px'; - child.style.zIndex = 'var(--ck-z-modal)'; + child.style.zIndex = 'var(--ck-z-panel)'; child.style.pointerEvents = 'none'; } diff --git a/theme/mathform.css b/theme/mathform.css index 8f3a70c9c..3b7b4047f 100644 --- a/theme/mathform.css +++ b/theme/mathform.css @@ -31,5 +31,5 @@ } .ck.ck-toolbar-container { - z-index: calc(var(--ck-z-modal) + 2); + z-index: calc(var(--ck-z-panel) + 2); }