reuters-graphics/graphics-svelte-components

stackBackground is always true

Closed this issue · 1 comments

Had this issue recently in a graphic.
stackBackground comes in as a string from google docs, hence always resolves to true in the conditions here

I've added a terrible looking condition here: #34

There are other ways to fix this, though:

  1. Could edit condition in Page.svelte when passing the prop.
  2. Could change it to a number right after we fetch google docs, before writing to content.json

Let me know what you folks think!