From 04c5cd5809abb992bfbe1cd52f4375676d74bfdc Mon Sep 17 00:00:00 2001 From: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Date: Tue, 2 Jun 2026 20:58:33 +0530 Subject: [PATCH 1/3] refactor(survey-ui): strip inline styles for CSP compatibility (#8205) Co-authored-by: Claude Opus 4.7 (1M context) --- .../survey-ui/src/components/elements/consent.tsx | 4 +--- .../src/components/elements/file-upload.tsx | 10 +++------- .../src/components/general/element-media.tsx | 3 +-- .../survey-ui/src/components/general/input.tsx | 3 +-- .../survey-ui/src/components/general/progress.tsx | 15 +++++++++++---- .../survey-ui/src/components/general/textarea.tsx | 3 +-- packages/survey-ui/src/styles/globals.css | 1 + 7 files changed, 19 insertions(+), 20 deletions(-) diff --git a/packages/survey-ui/src/components/elements/consent.tsx b/packages/survey-ui/src/components/elements/consent.tsx index 1bea01499e13..8be73d37323d 100644 --- a/packages/survey-ui/src/components/elements/consent.tsx +++ b/packages/survey-ui/src/components/elements/consent.tsx @@ -92,10 +92,8 @@ function Consent({ disabled={disabled} aria-invalid={Boolean(errorMessage)} /> - {/* need to use style here because tailwind is not able to use css variables for font size and weight */} {checkboxLabel} diff --git a/packages/survey-ui/src/components/elements/file-upload.tsx b/packages/survey-ui/src/components/elements/file-upload.tsx index d8b895ddd196..30177ab4eab3 100644 --- a/packages/survey-ui/src/components/elements/file-upload.tsx +++ b/packages/survey-ui/src/components/elements/file-upload.tsx @@ -96,8 +96,7 @@ function UploadedFileItem({

{file.name}

@@ -189,8 +188,7 @@ function UploadArea({ aria-label="Upload files by clicking or dragging them here">