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]: Expand categories content by default #603

Closed Striffly closed 6 months ago

Striffly commented 7 months ago

Description

An interesting feature would be to make the description and services associated with categories visible by default (and not after clicking on the "expand" icon on the right of the category name). This would allow the user to see all services and enable / disable them when the modal is shown, and not after expanding categories.

CookieConsent.showPreferences() can also take one parameter to expand only one category : this is interesting when you want the user to focus on a specific service (for example, before displaying Google Maps or Youtube video if CookieConsent.validConsent() is false).

Proposed solution

No response

Additional details

No response

orestbida commented 6 months ago

Sorry, this won't be worked on; while I get your point, it also falls in my "unnecessary" category of features. I'd like to keep the plugin as clean and small as possible.