From db5d8f03b7baa082769a4c840012ff13b7250e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 14 Aug 2024 16:04:35 +0200 Subject: [PATCH] Drawer: Fixes incorrect mask background and flickering (#91890) --- packages/grafana-ui/src/components/Drawer/Drawer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Drawer/Drawer.tsx b/packages/grafana-ui/src/components/Drawer/Drawer.tsx index b6487f06563..ce9a075fdd9 100644 --- a/packages/grafana-ui/src/components/Drawer/Drawer.tsx +++ b/packages/grafana-ui/src/components/Drawer/Drawer.tsx @@ -294,7 +294,8 @@ const getStyles = (theme: GrafanaTheme2) => { // but we don't want the backdrop styling to apply over the top bar as it looks weird // instead have a child pseudo element to apply the backdrop styling below the top bar mask: css({ - backgroundColor: 'transparent', + // The !important here is to override the default .rc-drawer-mask styles + backgroundColor: 'transparent !important', position: 'fixed', '&:before': {