Skip to content
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

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

letiescanciano
Copy link
Contributor

@letiescanciano letiescanciano commented Oct 28, 2022

What

We are experimenting with the consent manager dialog (green light from Patsy).
changes:

  • Hide Reject all cookies button
  • Change UI for Manage preferences cookies button

Same changes have been already applied at airbyte.com and cost.airbyte.io

How

Adding styles specific to Osano items.

Screen Shot 2022-10-28 at 10 36 10 AM

@letiescanciano letiescanciano requested a review from a team as a code owner October 28, 2022 08:39
@github-actions github-actions bot added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Oct 28, 2022
Comment on lines 62 to 67
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; }`
)
);
Copy link
Collaborator

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; }
  // ...
`));

Copy link
Collaborator

@timroes timroes left a 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.

@letiescanciano letiescanciano merged commit c12897f into master Nov 3, 2022
@letiescanciano letiescanciano deleted the leti/hide-button-consent-manager branch November 3, 2022 08:20
letiescanciano added a commit that referenced this pull request Nov 3, 2022
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants