Skip to content

Commit bb23639

Browse files
fix(multi-org): disable hover effect in switch button (#5408)
1 parent e74f470 commit bb23639

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/identity/components/GlobalHeader/GlobalHeaderDropdown/GlobalHeaderDropdown.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
color: $cf-grey-75;
4444
margin-right: 8px;
4545
font-size: 18px;
46+
width: 18px;
4647
}
4748

4849
.line-break {
@@ -54,3 +55,7 @@
5455
display: flex;
5556
align-items: center;
5657
}
58+
59+
.global-header--switch-button {
60+
background-color: transparent !important;
61+
}

src/identity/components/GlobalHeader/GlobalHeaderDropdown/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ export class GlobalHeaderDropdown extends React.Component<Props, State> {
172172
>
173173
{/* Multi-org UI tickets #4051 and #4047, when user only has 1 account or 1 org, switch button is disabled */}
174174
{!onlyRenderSubmenu && typeAheadMenuOptions.length > 1 && (
175-
<Dropdown.Item onClick={this.toggleShowTypeAheadMenu}>
175+
<Dropdown.Item
176+
onClick={this.toggleShowTypeAheadMenu}
177+
className="global-header--switch-button"
178+
>
176179
<FlexBox
177180
justifyContent={JustifyContent.SpaceBetween}
178181
alignItems={AlignItems.Center}

0 commit comments

Comments
 (0)