fix: Custom scrollIntoView function with offsets and onFocus handlers for containers

This commit is contained in:
Aleksi Lassila
2024-04-05 12:51:11 +03:00
parent 754227737b
commit b436e809de
12 changed files with 275 additions and 162 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import Container from '../../../Container.svelte';
import HeroShowcaseBackground from './HeroBackground.svelte';
import { scrollWithOffset, Selectable } from '../../selectable';
import { scrollIntoView, Selectable } from '../../selectable';
import IconButton from '../IconButton.svelte';
import { ChevronRight } from 'radix-icons-svelte';
import PageDots from '../HeroShowcase/PageDots.svelte';
@@ -42,7 +42,6 @@
<Container class="flex-1 flex">
<HeroShowcaseBackground {urls} {index} />
<Container
revealStrategy={scrollWithOffset('up', 0)}
navigationActions={{
right: onNext,
left: onPrevious,