diff --git a/src/lib/components/Sequence.svelte b/src/lib/components/Sequence.svelte index 907fe2b..d99d0b8 100644 --- a/src/lib/components/Sequence.svelte +++ b/src/lib/components/Sequence.svelte @@ -83,6 +83,7 @@ on:pointermove={handlePointerMove} class={uniqueClasses(`${containerClasses}${className ? ` ${className}` : ''}`)} style={background} + style:position="unset" {...$$restProps} > diff --git a/src/lib/utils/cssBackgroundGuides.ts b/src/lib/utils/cssBackgroundGuides.ts index 44c575b..662f9c5 100644 --- a/src/lib/utils/cssBackgroundGuides.ts +++ b/src/lib/utils/cssBackgroundGuides.ts @@ -1,4 +1,5 @@ // TODO: use css-var for color and change with dark mode +// FIXME: this results in an inline style containing position: relative; which breaks modals as it renders on top of them. Currently we are unsetting this again. But not surte why it happens. Definetely not an elegant fix currently. export const cssBackgroundGuides = ( duration: number, millis = 2000, @@ -6,7 +7,6 @@ export const cssBackgroundGuides = ( ) => { const divisions = duration / millis; const divisionsPercent = 100 / divisions; - return `background-image: - linear-gradient(90deg, ${color} ${lineWidth}px, transparent ${lineWidth}px, transparent calc(100% - ${lineWidth}px), ${color} calc(100% - ${lineWidth}px)); - background-size: ${divisionsPercent}% 100%;`; + return `background-image: linear-gradient(90deg, ${color} ${lineWidth}px, transparent ${lineWidth}px, transparent calc(100% - ${lineWidth}px), ${color} calc(100% - ${lineWidth}px)); + background-size: ${divisionsPercent}% 100%;`; };