Skip to content

Commit

Permalink
fixed the sizing issue for the themeToglle button to align with the F…
Browse files Browse the repository at this point in the history
…Igma design
  • Loading branch information
jazzgrewal committed Sep 8, 2023
1 parent 2eab895 commit b9f32b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/BCHeaderwSide/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ const BCHeaderwSide = () => {
<span className="header-full-name"> Quickstarter React Template </span>
</Link>
<HeaderGlobalBar className="align-items-center">
<ThemeToggle/>
<div className="mx-2">
<ThemeToggle/>
</div>
<HeaderGlobalAction
aria-label="Notifications"
data-testid="header-button__notifications"
Expand Down
17 changes: 9 additions & 8 deletions frontend/src/components/ThemeToggle/ThemeToggle.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@use '@bcgov-nr/nr-fsa-theme/design-tokens/colors.scss' as colors;
.theme-toggle {
width: 62px;
height: 31px;
width: 48px;
height: 24px;
border-radius: 15px;
display: flex;
align-items: center;
padding: 2px;
padding: 3px;
cursor: pointer;
position: relative;
overflow: hidden;
Expand All @@ -19,8 +19,8 @@
}

.circle {
width: 26px;
height: 26px;
width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
justify-content: center;
Expand All @@ -37,14 +37,15 @@

&.on {
.circle {
transform: translateX(31px);
transform: translateX(24px);
background-color: white;
}
}

.icon {
width: 23px;
height: 23px;
width: 16px;
height: 16px;
padding: 1px;
}
&.on {
.icon {
Expand Down

0 comments on commit b9f32b0

Please sign in to comment.