From 83ce33003a3472c8f8cd5302a1a1094c877cf344 Mon Sep 17 00:00:00 2001 From: Tim Down Date: Fri, 8 Apr 2022 10:17:13 +0100 Subject: [PATCH] Allow CodeMirror to manage positioning the spell check context menu (#7440) GitOrigin-RevId: b4153741cf67bc355e4a08efe51bb33a16c991f6 --- .../frontend/stylesheets/components/dropdowns.less | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/services/web/frontend/stylesheets/components/dropdowns.less b/services/web/frontend/stylesheets/components/dropdowns.less index eb20404e02..45d351c745 100755 --- a/services/web/frontend/stylesheets/components/dropdowns.less +++ b/services/web/frontend/stylesheets/components/dropdowns.less @@ -98,6 +98,17 @@ button.dropdown-toggle.dropdown-toggle-no-background { } } +// This removes positioning, display and z-index, which is used just to style the menu in situations where something +// else is managing that stuff (e.g. the spelling context menu in CodeMirror 6). +.dropdown-menu.dropdown-menu-unpositioned { + position: unset; + top: unset; + left: unset; + z-index: unset; + display: block; + float: unset; +} + // Hover/Focus state .dropdown-menu > li > a, .dropdown-menu .dropdown-menu-button {