segmentio / consent-manager

Drop-in consent management plugin for analytics.js
https://segmentio.github.io/consent-manager/
MIT License
341 stars 144 forks source link

Add css and content customization options #221

Closed NeversSync closed 1 year ago

NeversSync commented 2 years ago

There is css being applied by default to the various elements in the ConsentManager, and no option to override or disable that styling. I'm referencing font-size, font-family, display: flex; rules, etc. I imagine this is also true for the ConsentManagerBuilder.

It would be hugely helpful to add a prop to ConsentManager such as disableDefaultStyles which would disable all css.

It would also be helpful to add class names to the various elements (divs and p tags, etc.) which are provided by the ConsentManager for those who want to use the default styling, but override styles selectively.

These changes would improve the DX. Thanks