Skip to content

Commit

Permalink
GH-965 - Updating global nav right sidebar buttons (#983)
Browse files Browse the repository at this point in the history
* GH-965 - Updating global nav right sidebar buttons

* Updating test
  • Loading branch information
asaadmahmood committed Aug 16, 2021
1 parent a8cf6f8 commit 0438b88
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`components/sidebar/GlobalHeader header menu should match snapshot 1`] =
class="spacer"
/>
<a
class="help-button"
class="GlobalHeaderComponent__button help-button"
href="https://www.focalboard.com/guide/user?utm_source=webapp"
rel="noreferrer"
target="_blank"
Expand All @@ -25,7 +25,7 @@ exports[`components/sidebar/GlobalHeader header menu should match snapshot 1`] =
class="MenuWrapper"
>
<div
class="menu-entry"
class="GlobalHeaderComponent__button menu-entry"
>
<i
class="CompassIcon icon-settings-outline SettingsIcon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`components/sidebar/GlobalHeaderSettingsMenu languages menu open should
class="MenuWrapper"
>
<div
class="menu-entry"
class="GlobalHeaderComponent__button menu-entry"
>
<i
class="CompassIcon icon-settings-outline SettingsIcon"
Expand Down Expand Up @@ -339,7 +339,7 @@ exports[`components/sidebar/GlobalHeaderSettingsMenu settings menu closed should
class="MenuWrapper"
>
<div
class="menu-entry"
class="GlobalHeaderComponent__button menu-entry"
>
<i
class="CompassIcon icon-settings-outline SettingsIcon"
Expand All @@ -359,7 +359,7 @@ exports[`components/sidebar/GlobalHeaderSettingsMenu settings menu open should m
class="MenuWrapper"
>
<div
class="menu-entry"
class="GlobalHeaderComponent__button menu-entry"
>
<i
class="CompassIcon icon-settings-outline SettingsIcon"
Expand Down
37 changes: 31 additions & 6 deletions webapp/src/components/globalHeader/globalHeader.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
.GlobalHeaderComponent {
display: flex;
flex-direction: row;
margin-right: 20px;
width: 100%;
margin-right: -8px;

.spacer {
flex-grow: 1;
}
.help-button {

.GlobalHeaderComponent__button {
width: 28px;
height: 28px;
display: flex;
align-items: center;
padding: 0 17px;
}
.HelpIcon {
justify-content: center;
border-radius: 4px;
color: rgba(var(--sidebar-text-rgb), 0.64);
font-size: 20px;
margin-left: 8px;

i {
font-size: 18px;
width: 18px;
height: 18px;
display: flex;

&:before {
margin: 0;
}
}

&:hover {
background-color: rgba(var(--sidebar-text-rgb), 0.08);
color: rgba(var(--sidebar-text-rgb), 0.72);
}

&:active {
background-color: rgba(var(--sidebar-text-rgb), 0.16);
color: rgba(var(--sidebar-text-rgb), 1);
}
}

}
2 changes: 1 addition & 1 deletion webapp/src/components/globalHeader/globalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const HeaderItems = () => {
href='https://www.focalboard.com/guide/user?utm_source=webapp'
target='_blank'
rel='noreferrer'
className='help-button'
className='GlobalHeaderComponent__button help-button'
>
<HelpIcon/>
</a>
Expand Down
21 changes: 0 additions & 21 deletions webapp/src/components/globalHeader/globalHeaderSettingsMenu.scss
Original file line number Diff line number Diff line change
@@ -1,21 +0,0 @@
.focalboard-body .GlobalHeaderSettingsMenu {
.menu-entry {
display: flex;
flex-direction: row;
padding: 0 16px 0 8px;
height: 36px;
align-items: center;
padding-left: 20px;
color: rgba(var(--sidebar-text-rgb), 0.64);
font-weight: 400;

&:hover {
background-color: rgba(var(--sidebar-text-rgb), 0.08);
display: flex;
}
}
.SettingsIcon {
color: rgba(var(--sidebar-text-rgb), 0.64);
font-size: 20px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const GlobalHeaderSettingsMenu = React.memo(() => {
return (
<div className='GlobalHeaderSettingsMenu'>
<MenuWrapper>
<div className='menu-entry'>
<div className='GlobalHeaderComponent__button menu-entry'>
<SettingsIcon/>
</div>
<Menu position='left'>
Expand Down
4 changes: 0 additions & 4 deletions webapp/src/widgets/icons/settings.scss
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
.focalboard-body .SettingsIcon {
color: rgba(var(--body-color), 0.5);
font-size: 16px;
}

0 comments on commit 0438b88

Please sign in to comment.