From 73fcbab14f06abac2d303d2d25bde1b600bf8cc2 Mon Sep 17 00:00:00 2001 From: Kelsey Thomas <101993653+Kelsey-Ethyca@users.noreply.github.com> Date: Fri, 3 Nov 2023 14:00:33 -0700 Subject: [PATCH] Update fides.css to vary width based on tcf (#4381) --- CHANGELOG.md | 10 +++- .../fides-js/src/components/ConsentBanner.tsx | 7 +-- .../src/components/ConsentContent.tsx | 54 ++++++++++--------- clients/fides-js/src/components/fides.css | 46 ++++++++++++---- .../cypress/e2e/consent-banner-tcf.cy.ts | 52 +++++++++--------- 5 files changed, 104 insertions(+), 65 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86e853197c9..92f35f04382 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,10 +15,18 @@ The types of changes are: - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. -## [Unreleased](https://github.com/ethyca/fides/compare/2.23.1...main) +## [Unreleased](https://github.com/ethyca/fides/compare/2.23.2...main) ### Changed - Determine if the TCF overlay needs to surface based on backend calculated version hash [#4356](https://github.com/ethyca/fides/pull/4356) +- Moved Experiences and Preferences endpoints to Plus to take advantage of dynamic GVL [#4367](https://github.com/ethyca/fides/pull/4367) +- "is_service_specific" default updated when building TC strings on the backend [#4377](https://github.com/ethyca/fides/pull/4377) +- Redact cli, database, and redis configuration information from GET api/v1/config API request responses. [#4379](https://github.com/ethyca/fides/pull/4379) + +## [2.23.2](https://github.com/ethyca/fides/compare/2.23.1...2.23.2) + +### Fixed +- Fixed fides.css to vary banner width based on tcf [[#4381](https://github.com/ethyca/fides/issues/4381)] ## [2.23.1](https://github.com/ethyca/fides/compare/2.23.0...2.23.1) diff --git a/clients/fides-js/src/components/ConsentBanner.tsx b/clients/fides-js/src/components/ConsentBanner.tsx index 4dd0065ce8f..28ef030fe32 100644 --- a/clients/fides-js/src/components/ConsentBanner.tsx +++ b/clients/fides-js/src/components/ConsentBanner.tsx @@ -59,9 +59,10 @@ const ConsentBanner: FunctionComponent = ({ return (
diff --git a/clients/fides-js/src/components/ConsentContent.tsx b/clients/fides-js/src/components/ConsentContent.tsx index a6df1c07fd9..5ca126021c2 100644 --- a/clients/fides-js/src/components/ConsentContent.tsx +++ b/clients/fides-js/src/components/ConsentContent.tsx @@ -1,4 +1,4 @@ -import { ComponentChildren, VNode, h } from "preact"; +import { ComponentChildren, VNode, h, Fragment } from "preact"; import { HTMLAttributes } from "react"; import { ExperienceConfig } from "../lib/consent-types"; @@ -26,33 +26,35 @@ const ConsentModal = ({ const showGpcBadge = getConsentContext().globalPrivacyControl; return ( -