Skip to content

Commit 7260070

Browse files
committed
fix lints
1 parent ab00983 commit 7260070

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

changelog/7228.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type: Fixed
2-
description: Added experience config ID class to embedded consent body for per-brand CSS
2+
description: Added experience config ID and property ID classes to embedded consent body
33
pr: 7228
44
labels: []
55

clients/privacy-center/public/embedded-consent.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,16 @@ <h3 id="fides-embed-no-results" class="no-results no-results--is-hidden">
8282
</main>
8383
<script>
8484
const onInitialized = () => {
85-
// Add experience config ID as a class to the body for per-brand CSS styling
86-
const experienceConfigId = window.Fides?.experience?.experience_config?.id;
85+
// Add experience config ID and property ID as classes to the body for per-brand CSS styling
86+
const experienceConfigId =
87+
window.Fides?.experience?.experience_config?.id;
8788
if (experienceConfigId) {
8889
window.document.body.classList.add(experienceConfigId);
8990
}
91+
const propertyId = window.Fides?.experience?.property_id;
92+
if (propertyId) {
93+
window.document.body.classList.add(propertyId);
94+
}
9095

9196
let fidesUIShown = false;
9297
window.addEventListener("FidesUIShown", () => {

0 commit comments

Comments
 (0)