From 394976bb6ec4334dd35faf7986a2b89bbb94b16b Mon Sep 17 00:00:00 2001 From: Eric Leijonmarck Date: Fri, 8 Sep 2023 07:40:18 +0100 Subject: [PATCH] Service accounts: Fix mouse leave event by hide scrollbar in firefox and chrome (#74266) fix: hide scrollbar in firefox and chrome for menu, due to mouse leave event --- .../app/core/components/RolePicker/RolePickerMenu.tsx | 10 +++++++++- public/app/core/components/RolePicker/styles.ts | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/public/app/core/components/RolePicker/RolePickerMenu.tsx b/public/app/core/components/RolePicker/RolePickerMenu.tsx index adda62484dd5..54733ec4a299 100644 --- a/public/app/core/components/RolePicker/RolePickerMenu.tsx +++ b/public/app/core/components/RolePicker/RolePickerMenu.tsx @@ -219,7 +219,15 @@ export const RolePickerMenu = ({ )} >
- + {showBasicRole && (
{ return { + hideScrollBar: css` + .scrollbar-view { + /* Hide scrollbar for Chrome, Safari, and Opera */ + &::-webkit-scrollbar { + display: none; + } + /* Hide scrollbar for Firefox */ + scrollbar-width: none; + } + `, menuWrapper: css` display: flex; max-height: 650px;