Skip to content

Commit c924459

Browse files
fix(account-dropdown): fix contrast issues in dark mode (#7088)
1 parent 643682d commit c924459

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

frontend/web/components/navigation/AccountDropdown.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const AccountDropdown: React.FC = () => {
5656
return (
5757
<div className='feature-action' tabIndex={-1}>
5858
<button
59-
className='btn btn-link p-0 d-flex ps-3 lh-1 align-items-center'
59+
className='account-dropdown-trigger d-flex ps-3 lh-1 align-items-center text-default'
6060
onClick={(e) => {
6161
e.stopPropagation()
6262
setIsOpen(!isOpen)
@@ -65,8 +65,8 @@ const AccountDropdown: React.FC = () => {
6565
id='account-settings-link'
6666
data-test='account-settings-link'
6767
>
68-
<span className='mr-1'>
69-
<Icon name='person' width={20} fill='#9DA4AE' />
68+
<span className='mr-1 icon-secondary'>
69+
<Icon name='person' width={20} />
7070
</span>
7171
<span className='d-none d-md-block'>Account</span>
7272
</button>

frontend/web/styles/project/_project-nav.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ nav a {
1313
font-weight: bold;
1414
}
1515
}
16+
.account-dropdown-trigger {
17+
background: none;
18+
border: none;
19+
cursor: pointer;
20+
font-weight: 500;
21+
22+
&:hover,
23+
&:focus {
24+
color: var(--color-text-action);
25+
}
26+
}
1627
.nav-sub-link-disabled {
1728
cursor: not-allowed;
1829
span {

0 commit comments

Comments
 (0)