Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] css variable not foud #150

Open
rbalet opened this issue Oct 13, 2024 · 1 comment
Open

[Bug] css variable not foud #150

rbalet opened this issue Oct 13, 2024 · 1 comment

Comments

@rbalet
Copy link

rbalet commented Oct 13, 2024

Ngx-CookieConsent Version

v6.0.0

CookieConsent Version

v3.1.1

Angular CLI (or Nx CLI) Version

v19.8.4

Node Version

v20.18.0

OS Version

Mac Os

Expected Behaviour

Being able to change the margin bottom with the --cc-modal-margin variable.

image

source

Actual Behaviour

The variable is hard coded
image

Steps to reproduce the behaviour

import { NgcCookieConsentConfig, provideNgcCookieConsent } from 'ngx-cookieconsent'

const cookieConfig: NgcCookieConsentConfig = {
  cookie: {
    domain: 'my-domain.com',
  },
  position: 'bottom-left',
  theme: 'classic',
  palette: {
    popup: {
      background: '#000000',
      text: '#ffffff',
      link: '#ffffff',
    },
    button: {
      background: '#2da2da',
      text: '#ffffff',
      border: 'transparent',
    },
  },
  type: 'opt-in',
  content: {
    message: `We're using cookies to ensure you get the best experience on the website.`,
    dismiss: `Allow`,
    deny: `Refuse`,
    link: `Learn more`,
    href: 'https://cookiesandyou.com',
    policy: 'Cookie Policy',
  },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@rbalet and others