Palmabit-IT / react-cookie-law

React Cookie Law is a cookie-info banner compliance with the GDPR and the EU cookie law. It allows the user to give consent in a granular way.
115 stars 55 forks source link

showDeclineButton seems to do nothing #29

Open pierreavizou opened 3 years ago

pierreavizou commented 3 years ago

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 commented 3 years ago

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

sjb3 commented 3 years ago

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

lucidlemon commented 1 year ago

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