diff --git a/CHANGELOG.md b/CHANGELOG.md index 6311552560..5ae3173102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ The types of changes are: - Model changes to support consent signals (Fidesplus) [#5190](https://github.com/ethyca/fides/pull/5190) - Updated Datasets page with new UI for better usability and consistency with Detection and Discovery UI [#5191](https://github.com/ethyca/fides/pull/5191) - Updated the Yotpo Reviews integration to use email and phone number identities instead of external ID [#5169](https://github.com/ethyca/fides/pull/5169) +- Update TCF banner button layout and styles [#5204](https://github.com/ethyca/fides/pull/5204) ### Developer Experience diff --git a/clients/fides-js/src/components/ConsentBanner.tsx b/clients/fides-js/src/components/ConsentBanner.tsx index 65821f88d3..dfdb9a9d54 100644 --- a/clients/fides-js/src/components/ConsentBanner.tsx +++ b/clients/fides-js/src/components/ConsentBanner.tsx @@ -3,7 +3,6 @@ import { useEffect } from "preact/hooks"; import { getConsentContext } from "../lib/consent-context"; import { GpcStatus } from "../lib/consent-types"; -import { useMediaQuery } from "../lib/hooks/useMediaQuery"; import { I18n, messageExists } from "../lib/i18n"; import CloseButton from "./CloseButton"; import ExperienceDescription from "./ExperienceDescription"; @@ -38,7 +37,6 @@ const ConsentBanner: FunctionComponent = ({ className, isEmbedded, }) => { - const isMobile = useMediaQuery("(max-width: 768px)"); const showGpcBadge = getConsentContext().globalPrivacyControl; useEffect(() => { @@ -122,9 +120,8 @@ const ConsentBanner: FunctionComponent = ({ {children} - {!isMobile && renderButtonGroup()} - {isMobile && renderButtonGroup()} + {renderButtonGroup()} diff --git a/clients/fides-js/src/components/ConsentButtons.tsx b/clients/fides-js/src/components/ConsentButtons.tsx index 3908e5cb9e..9d0774ebd3 100644 --- a/clients/fides-js/src/components/ConsentButtons.tsx +++ b/clients/fides-js/src/components/ConsentButtons.tsx @@ -55,6 +55,14 @@ export const ConsentButtons = ({ {!!renderFirstButton && renderFirstButton()} {!hideOptInOut && ( + {isTCF && !!onManagePreferencesClick && ( +