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

showDeclineButton seems to do nothing #29

Open
pierreavizou opened this issue Mar 3, 2021 · 3 comments
Open

showDeclineButton seems to do nothing #29

pierreavizou opened this issue Mar 3, 2021 · 3 comments

Comments

@pierreavizou
Copy link

pierreavizou commented Mar 3, 2021

It looks like setting showDeclineButton to true does not cause the decline button to show up.

Here's the code I'm testing with:

<CookieBanner
        className="dark:bg-gray-50 dark:text-gray-800 bg-gray-800 text-gray-50"
        styles={{
          dialog: {
            position: 'fixed',
            bottom: 0,
            left: 0,
            right: 0,
            padding: '10px',
          }
        }}
        statisticsDefaultChecked={true}
        message="Cookie banner message"
        showDeclineButton={true}
        declineButtonText="Decline All"
        wholeDomain={true}
        onAccept = {() => {}}
        onAcceptPreferences = {() => {}}
        onAcceptStatistics = {() => {}}
        onAcceptMarketing = {() => {}}
/>

Which gives the result below:
image
As you can see there is no decline button.

It would be quite useful because new regulations in Europe require that "declining must be as easy as accepting".
Also let me know if I've missed something 😁

@rriski
Copy link

rriski commented Apr 19, 2021

Any updates on this? The PR seems good, could it be merged? @asarzina

@sjb3
Copy link

sjb3 commented Sep 16, 2021

Yeah seems like it hasn't fully merged yet - any updates on DECLINE button?

@lucidlemon
Copy link

Any updates on this?
2 years with an open merge request is a bit tedious.

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

No branches or pull requests

4 participants