-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded CMP Layer 2 example page #5564
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
{/* Require FidesJS to "embed" it's UI onto the page, instead of as an overlay over the <body> itself. (see https://ethyca.com/docs/dev-docs/js/reference/interfaces/FidesOptions#fides_embed) */} | ||
<script>{`window.fides_overrides = { fides_embed: true, fides_disable_banner: true }`}</script> | ||
{/* Allow the embedded consent modal to fill the screen */} | ||
<style>{`#fides-embed-container { --fides-overlay-width: 'auto' }`}</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 4 lines are where this example varies from the original Cookie House homepage, in addition to the div
below. Everything else is exactly the same.
`} | ||
</Script> | ||
) : null} | ||
<div id="fides-embed-container" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This div
replaces Home
component from the Cookie House homepage.
fides Run #11302
Run Properties:
|
Project |
fides
|
Branch Review |
refs/pull/5564/merge
|
Run status |
Passed #11302
|
Run duration | 00m 57s |
Commit |
08c33afbd0 ℹ️: Merge 339ff5963ad69e88db909ed7a568821bf44e9787 into 411c89559e0851f33369398d6628...
|
Committer | Jason Gill |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
View all changes introduced in this branch ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fides Run #11308
Run Properties:
|
Project |
fides
|
Branch Review |
main
|
Run status |
Passed #11308
|
Run duration | 00m 50s |
Commit |
ecf82c5d70: Embedded CMP Layer 2 example page (#5564)
|
Committer | Jason Gill |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
View all changes introduced in this branch ↗︎ |
Description Of Changes
Creating a new sample page that demonstrates how to embed the CMP onto a page. This is useful on its own, but will also be helpful for demonstrating how to load it into a Native mobile web view.
Code Changes
Steps to Confirm
/embedded-consent?geolocation=eea
to see the new embedded page/?geolocation=EEA
Pre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works