diff --git a/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png b/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png index b73c6bd9d0ab3..c91ec8b5f49c0 100644 Binary files a/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png and b/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png differ diff --git a/frontend/src/scenes/session-recordings/player/rrweb/index.ts b/frontend/src/scenes/session-recordings/player/rrweb/index.ts index 2739d32adfeca..534b115a7c13a 100644 --- a/frontend/src/scenes/session-recordings/player/rrweb/index.ts +++ b/frontend/src/scenes/session-recordings/player/rrweb/index.ts @@ -66,7 +66,13 @@ export const CorsPlugin: ReplayPlugin & { }, } +const defaultStyleRules = `.ph-no-capture { background-image: ${PLACEHOLDER_SVG_DATA_IMAGE_URL} }` +// replaces a common rule in Shopify templates removed during capture +// fix tracked in https://github.com/rrweb-io/rrweb/pull/1322 +const shopifyShorthandCSSFix = + '@media (prefers-reduced-motion: no-preference) { .scroll-trigger:not(.scroll-trigger--offscreen).animate--slide-in { animation: var(--animation-slide-in) } }' + export const COMMON_REPLAYER_CONFIG: Partial = { triggerFocus: false, - insertStyleRules: [`.ph-no-capture { background-image: ${PLACEHOLDER_SVG_DATA_IMAGE_URL} }`], + insertStyleRules: [defaultStyleRules, shopifyShorthandCSSFix], }