feat: Implement back button and selectable registrars

This commit is contained in:
Aleksi Lassila
2024-04-16 01:50:13 +03:00
parent f519fb7447
commit 32bde1ff9e
16 changed files with 197 additions and 89 deletions

View File

@@ -4,7 +4,7 @@
import { type Readable, writable, type Writable } from 'svelte/store';
import Container from '../../../Container.svelte';
import { useNavigate } from 'svelte-navigator';
import type { Selectable } from '../../selectable';
import { type Selectable, sidebarSelectable } from '../../selectable';
const navigate = useNavigate();
let selectedIndex = 0;
@@ -47,7 +47,8 @@
)}
bind:hasFocusWithin={isNavBarOpen}
bind:focusIndex
bind:container={selectable}
bind:selectable
registrar={sidebarSelectable.registrar}
>
<!-- Background -->
<div