-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Hide Reject all button in consent dialog #18596
Conversation
style.appendChild(document.createTextNode(".osano-cm-button--type_denyAll { display: none; }")); | ||
style.appendChild( | ||
document.createTextNode( | ||
`.osano-cm-button--type_manage { background-color: inherit; border: 1px inherit; font-weight: 200; }` | ||
) | ||
); |
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.
Not really a need to make this individual appendChild calls and create additional text nodes for this, we could just move all those styling into the one string that's already created above, to save some of those DOM nodes from being created. If we turn this into a backtick string, we can just have it multiline, i.e.
style.appendChild(document.createTextNode(`
.osano-cm-widget { display: none; }
.osano-cm-button--type_denyAll { display: none; }
// ...
`));
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.
Code LGTM, have not tested locally.
* master: (38 commits) New Source: Gridly (#18342) 🎉 New Source: Alpha Vantage (#18320) ci_integration_test.sh: cut GITHUB_STEP_SUMMARY (#18895) 🎉 New Source: Datadog [python cdk] (#18150) Hide Reject all button in consent dialog (#18596) feat: add doc url to track event (#18690) fix: install java in oss catalog deploy action (#18887) [CI] Speed up check_images_exist (#18873) Extract open API (#18879) Remove unused interfaces (#18880) add action for deploying oss connector catalog to GCS (#18633) feat: generate full connector catalog json (#18562) Add unsupported_protocol_version column to Connection (#18876) Extract OAuth API (#18818) update images to have non-transparent background (#18874) DiscoverSchema endpoints calculates diff and breaking change (#18571) Validate protocol version on connector update (#18639) Bmoric/extract notification api (#18812) Show version and changelog status for affected connectors (#18845) Bmoric/extract logs api (#18621) ...
What
We are experimenting with the consent manager dialog (green light from Patsy).
changes:
Reject all
cookies buttonManage preferences
cookies buttonSame changes have been already applied at
airbyte.com
andcost.airbyte.io
How
Adding styles specific to Osano items.