Merge pull request #337 from reuters-graphics/mf-scroller-quikfix
Scroller typo fixes
This commit is contained in:
commit
a9fda9e9be
3 changed files with 7 additions and 2 deletions
5
.changeset/soft-jars-sin.md
Normal file
5
.changeset/soft-jars-sin.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@reuters-graphics/graphics-components': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix typos in Scroller
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
{#each steps as step, i}
|
{#each steps as step, i}
|
||||||
{#if showStep(i)}
|
{#if showStep(i)}
|
||||||
<div
|
<div
|
||||||
class={`step step-${i + 1} w-full absolute`}
|
class={`step-background step-${i + 1} w-full absolute`}
|
||||||
class:visible={isVisible(i)}
|
class:visible={isVisible(i)}
|
||||||
class:invisible={!isVisible(i)}
|
class:invisible={!isVisible(i)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ Then parse the relevant ArchieML block object before passing to the `Scroller` c
|
||||||
{#if block.type === 'ai-scroller'}
|
{#if block.type === 'ai-scroller'}
|
||||||
<Scroller
|
<Scroller
|
||||||
id={block.id}
|
id={block.id}
|
||||||
backgroundWidth={block.width}
|
backgroundWidth={block.backgroundWidth}
|
||||||
foregroundPosition={block.foregroundPosition}
|
foregroundPosition={block.foregroundPosition}
|
||||||
stackBackground={truthy(block.stackBackground)}
|
stackBackground={truthy(block.stackBackground)}
|
||||||
steps={block.steps.map((step) => ({
|
steps={block.steps.map((step) => ({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue