-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nav-drawer): different colors in WC and Angular (#409)
- Loading branch information
1 parent
e059f50
commit 38b8a8e
Showing
24 changed files
with
121 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/components/nav-drawer/styles/fluent/nav-drawer-header-item.fluent.scss
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/components/nav-drawer/styles/fluent/nav-drawer-item.fluent.scss
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/components/nav-drawer/styles/indigo/nav-drawer-header-item.indigo.scss
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/components/nav-drawer/styles/indigo/nav-drawer.indigo.scss
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
src/components/nav-drawer/themes/dark/nav-drawer-item.base.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@use '../../../../styles/utilities' as *; | ||
|
||
@mixin theme() { | ||
igc-nav-drawer-item { | ||
--hover-background: #{color(gray, 100, .5)}; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/components/nav-drawer/themes/dark/nav-drawer-item.bootstrap.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@use '../../../../styles/utilities' as *; | ||
|
||
@mixin theme() { | ||
igc-nav-drawer-item { | ||
--hover-background: #{color(gray, 100)}; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/components/nav-drawer/themes/dark/nav-drawer-item.fluent.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@use '../../../../styles/utilities' as *; | ||
|
||
@mixin theme() { | ||
igc-nav-drawer-item { | ||
--hover-background: #{color(gray, 100, .5)}; | ||
--active-background: #{color(primary, 400, .12)}; | ||
--active-icon-color: #{color(primary, 100)}; | ||
--active-text-color: #{color(primary, 200)}; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/components/nav-drawer/themes/dark/nav-drawer-item.indigo.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@use '../../../../styles/utilities' as *; | ||
|
||
@mixin theme() { | ||
igc-nav-drawer-item { | ||
--text-color: #{color(gray, 100)}; | ||
--hover-text-color: #{color(gray, 50)}; | ||
--active-background: #{color(gray, 400, .5)}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@use '../../../../styles/utilities' as *; | ||
|
||
@mixin theme() { | ||
igc-nav-drawer { | ||
--background: #{color(gray, 500)}; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/components/nav-drawer/themes/light/fluent/nav-drawer-header-item.fluent.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@use '../../../../../styles/utilities/index' as *; | ||
|
||
:host { | ||
@include type-category('caption'); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@use '../../../../../styles/utilities/index' as *; | ||
|
||
$active-icon-color: var(--active-icon-color, color(primary, 500)) !default; | ||
|
||
[part='base'] { | ||
@include type-category('body-2'); | ||
} | ||
|
||
:host([active]) { | ||
[part='icon'] { | ||
color: $active-icon-color; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/components/nav-drawer/themes/light/indigo/nav-drawer-header-item.indigo.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@use '../../../../../styles/utilities/index' as *; | ||
|
||
:host { | ||
color: color(gray, 50); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@use '../../../../../styles/utilities/index' as *; | ||
|
||
$background: var(--background, color(gray, 700)) !default; | ||
|
||
:host { | ||
[part='base'] { | ||
background: $background; | ||
border: none; | ||
box-shadow: none; | ||
} | ||
} | ||
|
||
:host([position='start']) [part='mini'], | ||
:host([position='end']) [part='mini'] { | ||
background: $background; | ||
} |
6 changes: 3 additions & 3 deletions
6
...r/styles/nav-drawer-header-item.base.scss → ...es/light/nav-drawer-header-item.base.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
@use '../../../styles/common/component'; | ||
@use '../../../styles/utilities/index' as *; | ||
@use '../../../../styles/common/component'; | ||
@use '../../../../styles/utilities/index' as *; | ||
|
||
:host { | ||
display: block; | ||
padding: rem(20px) rem(16px); | ||
white-space: nowrap; | ||
color: color(gray, 900); | ||
color: color(gray, 800); | ||
|
||
@include type-category('subtitle-1'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ts/nav-drawer/styles/nav-drawer.base.scss → ...-drawer/themes/light/nav-drawer.base.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters