Skip to content

Commit

Permalink
feat: revert default search component and update to current Sparque s…
Browse files Browse the repository at this point in the history
…uggest changes, move quick order to top header
  • Loading branch information
andreassteinmann committed Dec 19, 2024
1 parent cd229c5 commit 1e1895d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class SearchBoxComponent implements OnInit {
// suggests are triggered solely via stream
this.searchResults$ = this.shoppingFacade
.searchResults$(this.inputSearchTerms$)
.pipe(map(results => results as SuggestTerm[]));
.pipe(map(results => (Array.isArray(results) ? results : [])));
}
blur() {
this.inputFocused = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ exports[`Header Default Component should render normal header adequately for des
></a>
</div>
</div>
<div class="col-md-5 text-right"><ish-lazy-quickorder-link></ish-lazy-quickorder-link></div>
<div class="col-md-4">
<div class="search-container header-search-container">
<ish-lazy-search-box data-testing-id="search-box-desktop"></ish-lazy-search-box>
Expand Down Expand Up @@ -115,7 +114,6 @@ exports[`Header Default Component should render normal header adequately for mob
></a>
</div>
</div>
<div class="col-md-5 text-right"><ish-lazy-quickorder-link></ish-lazy-quickorder-link></div>
<div class="col-md-4"></div>
</div>
<button type="button" class="navbar-toggler">
Expand Down Expand Up @@ -180,7 +178,6 @@ exports[`Header Default Component should render normal header adequately for tab
></a>
</div>
</div>
<div class="col-md-5 text-right"><ish-lazy-quickorder-link></ish-lazy-quickorder-link></div>
<div class="col-md-4">
<div class="search-container header-search-container">
<ish-lazy-search-box data-testing-id="search-box-desktop"></ish-lazy-search-box>
Expand Down Expand Up @@ -244,7 +241,6 @@ exports[`Header Default Component should render sticky header adequately for des
></a>
</div>
</div>
<div class="col-md-5 text-right"><ish-lazy-quickorder-link></ish-lazy-quickorder-link></div>
<div class="col-md-4"></div>
</div>
<button type="button" class="navbar-toggler">
Expand Down Expand Up @@ -304,7 +300,6 @@ exports[`Header Default Component should render sticky header adequately for mob
></a>
</div>
</div>
<div class="col-md-5 text-right"><ish-lazy-quickorder-link></ish-lazy-quickorder-link></div>
<div class="col-md-4"></div>
</div>
<button type="button" class="navbar-toggler">
Expand Down Expand Up @@ -364,7 +359,6 @@ exports[`Header Default Component should render sticky header adequately for tab
></a>
</div>
</div>
<div class="col-md-5 text-right"><ish-lazy-quickorder-link></ish-lazy-quickorder-link></div>
<div class="col-md-4"></div>
</div>
<button type="button" class="navbar-toggler">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@
></a>
</div>
</div>
<div class="col-md-5 text-right">
<ish-lazy-quickorder-link />
</div>
<div class="col-md-4">
<div *ngIf="!isSticky && deviceType !== 'mobile'" class="search-container header-search-container">
<ng-container *ngTemplateOutlet="searchBoxTemplate" />
Expand Down
6 changes: 0 additions & 6 deletions src/styles/components/header/header-sticky.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@
}
}

.mid-header {
.quickorder-link {
display: none !important;
}
}

.navbar-toggler {
@include media-breakpoint-down(md) {
display: block;
Expand Down
10 changes: 0 additions & 10 deletions src/styles/components/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@ header {
}
}

.mid-header {
.quickorder-link {
.header-icon {
font-size: $font-size-corporate;
color: $CORPORATE-PRIMARY;
vertical-align: middle;
}
}
}

&.homepage {
margin-bottom: 0;
}
Expand Down

0 comments on commit 1e1895d

Please sign in to comment.