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

Cant switch logo color in Angular #1695

Open
boskiv opened this issue Dec 5, 2022 · 1 comment
Open

Cant switch logo color in Angular #1695

boskiv opened this issue Dec 5, 2022 · 1 comment

Comments

@boskiv
Copy link

boskiv commented Dec 5, 2022

I'm trying to change a color for logo using flowbite CSS (tailwind)

Set variable to white

:root {
    --docsearch-logo-color: #fff;
}

in project.json I have

"styles": [
          "node_modules/@docsearch/css/dist/style.css",
          "apps/docs/src/styles.css"
        ],

But nothing changes
Screenshot 2022-12-05 at 22 25 24

Can you suggest to me where I'm wrong?

@julien-deramond
Copy link

Observed the same thing while trying to use this same custom property. Sounds like a bug. Here is the workaround I've used if it can help someone :)

.DocSearch-Logo svg .cls-1,
.DocSearch-Logo svg .cls-2 {
  fill: var(--docsearch-logo-color);
}

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