Skip to content

Add GPC support to OneTrust cookie banner#1134

Merged
nolannbiron merged 7 commits intomainfrom
nolann/add-GPC-support-for-onetrust
Feb 26, 2026
Merged

Add GPC support to OneTrust cookie banner#1134
nolannbiron merged 7 commits intomainfrom
nolann/add-GPC-support-for-onetrust

Conversation

@nolannbiron
Copy link
Member

When Global Privacy Control is enabled, hide Accept/Reject buttons and show a localized "Done" button that rejects all cookies.

When Global Privacy Control is enabled, hide Accept/Reject buttons
and show a localized "Done" button that rejects all cookies.
@nolannbiron nolannbiron requested a review from Copilot February 25, 2026 10:36
@changeset-bot
Copy link

changeset-bot bot commented Feb 25, 2026

🦋 Changeset detected

Latest commit: 081495b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@gitbook/integration-onetrust Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 25, 2026

Open in StackBlitz

bun add https://pkg.pr.new/GitbookIO/integrations/@gitbook/api@1134

commit: 081495b

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Global Privacy Control (GPC) behavior to the OneTrust cookie banner so that, when GPC is enabled, users aren’t presented with Accept/Reject options and instead can dismiss via a single “Done” action that rejects all cookies.

Changes:

  • Add a locale→label map for a new “Done” banner button.
  • When GPC is enabled, hide OneTrust Accept/Reject buttons and append a “Done” button that triggers reject-all behavior.
  • Add a changeset bump for @gitbook/integration-onetrust.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
integrations/onetrust/src/script.raw.js Adds GPC-specific UI behavior and localization for a new “Done” action in the OneTrust banner.
.changeset/bright-dogs-spend.md Declares a patch release for the OneTrust integration to ship the GPC banner behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nolannbiron nolannbiron merged commit 8cb514d into main Feb 26, 2026
13 checks passed
@nolannbiron nolannbiron deleted the nolann/add-GPC-support-for-onetrust branch February 26, 2026 15:13
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