Merge pull request #337 from reuters-graphics/mf-scroller-quikfix

Scroller typo fixes
This commit is contained in:
MinamiFunakoshiTR 2025-07-28 14:42:11 -04:00 committed by GitHub
commit a9fda9e9be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'@reuters-graphics/graphics-components': patch
---
Fix typos in Scroller

View file

@ -25,7 +25,7 @@
{#each steps as step, i}
{#if showStep(i)}
<div
class={`step step-${i + 1} w-full absolute`}
class={`step-background step-${i + 1} w-full absolute`}
class:visible={isVisible(i)}
class:invisible={!isVisible(i)}
>

View file

@ -122,7 +122,7 @@ Then parse the relevant ArchieML block object before passing to the `Scroller` c
{#if block.type === 'ai-scroller'}
<Scroller
id={block.id}
backgroundWidth={block.width}
backgroundWidth={block.backgroundWidth}
foregroundPosition={block.foregroundPosition}
stackBackground={truthy(block.stackBackground)}
steps={block.steps.map((step) => ({