orestbida / cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js
https://playground.cookieconsent.orestbida.com/
MIT License
3.68k stars 388 forks source link

[Feat]: Accept all on the top-right when using `bar inline` layout #587

Closed mrleblanc101 closed 4 months ago

mrleblanc101 commented 8 months ago

Description

In v3, I notice we can do these 2 layouts:

Accept all on the botton right Screenshot 2023-10-23 at 11 24 14 AM

Accept all on the top left Screenshot 2023-10-23 at 11 24 11 AM

But not this 3rd option which seems the most logical to me: Accept all on the top right Screenshot 2023-10-23 at 11 25 58 AM

Proposed solution

Instead of swap_button: true in v2 or flipButtons: true in v3, maybe something like this buttonOrder: ['accept', 'reject', 'preferences'] so we can customize the order easily ?

Additional details

No response

orestbida commented 4 months ago

Sorry, this won't be worked on since it would require either a breaking change or a new option which could conflict with the already existing ones.