feat: implement Navbar styling with responsive design and add localStorage mock to Navbar tests.

This commit is contained in:
Melvin Ragusa
2026-01-24 13:50:39 +01:00
parent b80db420c2
commit cefa3ef7aa
2 changed files with 13 additions and 1 deletions

View File

@@ -172,7 +172,7 @@
flex-direction: column;
gap: 0;
padding: var(--space-lg);
background-color: rgba(15, 20, 16, 0.98);
background-color: rgba(15, 20, 16, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--md-sys-color-outline-variant);
transform: translateY(-100%);

View File

@@ -16,6 +16,18 @@ describe('Navbar Performance', () => {
configurable: true,
get: scrollYGetterSpy as any,
});
// Mock localStorage
Object.defineProperty(window, 'localStorage', {
value: {
getItem: vi.fn(),
setItem: vi.fn(),
removeItem: vi.fn(),
clear: vi.fn(),
},
writable: true,
});
vi.useFakeTimers();
});