chore: updated focus state of menu switcher

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
This commit is contained in:
Adithya Krishna
2024-03-15 09:18:51 +05:30
parent d6668ad204
commit 17c6a4bd55
2 changed files with 15 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export const MenuSwitcher = ({ user, teams: initialTeamsData }: MenuSwitcherProp
<Button
data-testid="menu-switcher"
variant="none"
className="focus-visible:ring-ring relative flex h-12 flex-row items-center px-2 py-2 ring-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 "
className="no-hover-focus relative flex h-12 flex-row items-center px-2 py-2 ring-0 hover:bg-transparent focus:outline-none focus-visible:ring-0"
>
<AvatarWithText
avatarFallback={formatAvatarFallback(selectedTeam?.name)}

View File

@ -137,4 +137,18 @@
.swagger-dark-theme .swagger-ui .microlight {
filter: invert(100%) hue-rotate(180deg);
}
// Custom class to over
.no-hover-focus {
outline: none !important;
box-shadow: none !important;
background-color: inherit;
color: inherit;
border-color: inherit;
}
.no-hover-focus:focus-visible {
outline: none !important;
box-shadow: none !important;
}