diff --git a/projects/ngrx.io/src/app/app.component.html b/projects/ngrx.io/src/app/app.component.html index 3fbe57c042..178595e5b0 100644 --- a/projects/ngrx.io/src/app/app.component.html +++ b/projects/ngrx.io/src/app/app.component.html @@ -26,14 +26,16 @@ Home Home - - + diff --git a/projects/ngrx.io/src/app/app.component.spec.ts b/projects/ngrx.io/src/app/app.component.spec.ts index a9ba4d38db..30427af502 100644 --- a/projects/ngrx.io/src/app/app.component.spec.ts +++ b/projects/ngrx.io/src/app/app.component.spec.ts @@ -42,7 +42,8 @@ describe('AppComponent', () => { MockAioDocViewerComponent, MockAioDtComponent, MockAioLazyCeComponent, - MockAioFooterComponent + MockAioFooterComponent, + MockAioSearchBoxComponent ], imports: [ MatProgressBarModule, @@ -370,12 +371,6 @@ describe('AppComponent', () => { expect(component.showSearchResults).toBe(true); }); - it('should show developer source view if the footer is clicked while holding the meta and alt keys', () => { - component.dtOn = false; - expect(component.onClick({ tagName: 'FOOTER'} as HTMLElement, 0, false, true, true)).toBeFalsy(); - expect(component.dtOn).toBeTruthy(); - }); - it('should return the result of handleAnchorClick when anchor is clicked', () => { const anchorElement: HTMLAnchorElement = document.createElement('a'); spyOn(locationService, 'handleAnchorClick').and.returnValue(true); @@ -618,3 +613,9 @@ class MockAioFooterComponent { @Input() nodes; @Input() versionInfo; } + +@Component({ + selector: 'aio-search-box', + template: '' +}) +class MockAioSearchBoxComponent {} diff --git a/projects/ngrx.io/src/app/layout/top-menu/top-menu.component.ts b/projects/ngrx.io/src/app/layout/top-menu/top-menu.component.ts index 7cf09713e2..a258644ff0 100644 --- a/projects/ngrx.io/src/app/layout/top-menu/top-menu.component.ts +++ b/projects/ngrx.io/src/app/layout/top-menu/top-menu.component.ts @@ -6,6 +6,7 @@ import { NavigationNode } from 'app/navigation/navigation.service'; template: ` ` }) export class TopMenuComponent { diff --git a/projects/ngrx.io/src/styles/1-layouts/_top-menu.scss b/projects/ngrx.io/src/styles/1-layouts/_top-menu.scss index 714a7d9e54..c988afb200 100644 --- a/projects/ngrx.io/src/styles/1-layouts/_top-menu.scss +++ b/projects/ngrx.io/src/styles/1-layouts/_top-menu.scss @@ -189,7 +189,7 @@ aio-search-box.search-container { transition: width 0.4s ease-in-out; &:focus { - width: 50%; + width: 500px; } } @media (max-width: 480px) {