Skip to content

Conversation

@potench
Copy link

@potench potench commented Jun 9, 2021

Feat

Render the CMP inline to a target DOM insertion node.

  1. config.theme.isBannerInline enables relative positioning mode so the CMP can render within your main layout instead of layering it as a modal.
  2. Use config.insertionNode to identify a DOM node to insert CMP
  3. Confirming consent closes the CMP
  4. Resurfacing the CMP automatically switches back to Modal mode.

Other Fixes

  • Upgrade vendor list and script to download vendor list
  • Add configUpdate API to switch between relative and static position
  • Update docs
  • Pass theme colors through to anchors

Test Plan

  1. Testing inlineMode.
    Use The Sandbox to test inlineMode, slimMode, and other features.
    Live sandbox link

  2. Testing theme colors
    Sandbox is using custom colors, you can see anchors within translated text now get theme colors applied

primaryColor: '#0099ff',
textLinkColor: '#0099ff',

https://www.loom.com/share/eb274721ae094eda8a879d8b7144aa6c

@potench potench merged commit 1299254 into main Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants