docsearch icon indicating copy to clipboard operation
docsearch copied to clipboard

Cant switch logo color in Angular

Open boskiv opened this issue 3 years ago • 1 comments

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?

boskiv avatar Dec 05 '22 20:12 boskiv

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);
}

julien-deramond avatar Dec 27 '22 21:12 julien-deramond