Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Transparent background Cookie Concent #10829


User avatar
0
rvanwoezik created

v11.0.1 Angular How do i change the background color of the Cooke Consent?

Now it's transparent so not clearly visible

Thanks in advance


3 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @rvanwoezik

    AspNetZero uses cookieconsent npm package https://www.npmjs.com/package/cookieconsent. Here is their offical documentation https://www.osano.com/cookieconsent/documentation. You can follow the documentation and change it as you wish. Here is where aspnetzero initializes it https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/shared/common/session/cookie-consent.service.ts

  • User Avatar
    0
    rvanwoezik created

    I found all themes, except theme 13, are missing css classes for the cookieconsent: .cc-window { background-color: #282a3a; } .cc-btn { background-color: #5867dd; border-color: #5867dd; color: #ffffff; } .cc-message { color: #fefefe; } Hope this helps! Kind regards

  • User Avatar
    0
    musa.demir created

    Thanks @rvanwoezik

    I created an issue about it : https://github.com/aspnetzero/aspnet-zero-core/issues/4208