File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
clients/privacy-center/public Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11type : 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
33pr : 7228
44labels : []
55
Original file line number Diff line number Diff 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" , ( ) => {
You can’t perform that action at this time.
0 commit comments