porscheofficial / cookie-consent-banner

The lightweight and flexible Cookie Consent Banner
MIT License
149 stars 6 forks source link

More style flexibility #19

Closed Jerome1337 closed 1 year ago

Jerome1337 commented 1 year ago

Node/npm version(s):

NodeJS 19.6.0 Pnpm 7.27.0

Package(s) version(s):

@porscheofficial/cookie-consent-banner-react@3.1.3

Browser(s) version(s):

Arc Version 0.110.1 (39837) Chromium Engine Version 114.0.5735.198

Description of the issue/feature:

Allow button styling. Be able to change button size, padding, font, font weight...

Maybe allowing to pass our own button component to keep the same button style.

Another option could be to add css parts (https://stenciljs.com/docs/styling#css-parts) to be able to stylise the shadow DOM element using ::part() pseudo selector (https://developer.mozilla.org/en-US/docs/Web/CSS/::part)

Use cases:

Have a better design integration of the component