Skip to content

Commit

Permalink
refactor(navbar): update indigo theme styling (#1147)
Browse files Browse the repository at this point in the history
- move the bottom border from bootstrap to the common file since it has to be available in all themes.

Co-authored-by: Simeon Simeonoff <sim.simeonoff@gmail.com>
  • Loading branch information
desig9stein and simeonoff committed May 13, 2024
1 parent 7d93d8e commit a285646
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/navbar/themes/shared/navbar.bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ $theme: $bootstrap;
:host {
box-shadow: var(--ig-elevation-0);
padding: 0 rem(8px);
border-bottom: rem(1px) solid var-get($theme, 'border-color');
}

[part='base'] {
Expand Down
1 change: 1 addition & 0 deletions src/components/navbar/themes/shared/navbar.common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $theme: $material;
:host {
background: var-get($theme, 'background');
color: var-get($theme, 'text-color');
border-bottom: rem(1px) solid var-get($theme, 'border-color');
box-shadow: var(--ig-elevation-4);
}

Expand Down
25 changes: 25 additions & 0 deletions src/components/navbar/themes/shared/navbar.indigo.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
@use 'styles/utilities' as *;

:host {
min-height: rem(56px);
box-shadow: var(--ig-elevation-0);

[name='start']::slotted(*),
[name='end']::slotted(*) {
margin: initial;
}
}

[part='end'] {
gap: rem(8px);
}

[part='base'] {
gap: rem(16px);
}

::slotted(*) {
@include type-style('h5');
}

::slotted(igc-icon) {
--size: rem(16px);

padding: rem(6px);
margin: 0;
}

0 comments on commit a285646

Please sign in to comment.