how to change header icon colours
# 🤝help
j
the code is this /* Changes the fill color of the header icons to white */ .bpw-header-icon, .bpw-header-icon svg, .bpw-header-icon svg path { fill: #000000 !important; } how do i change it so its black? i put it as 000000 but its not working for some reason
f
/* This block of CSS code styles a header icon element */ .bpw-header-icon { /* Remove border */ border: none; /* Remove background color */ background: none; /* Remove padding */ padding: 0; /* Remove margin */ margin: 0; /* Set text color to a variable named shark */ color: var(--shark); /* Set line-height to zero */ line-height: 0; /* Set left margin to a variable named spacing-large */ margin-left: var(--spacing-large); /* Align text to the right */ text-align: right; /* Align element vertically in the middle */ vertical-align: middle; /* Set cursor to a pointer */ cursor: pointer; /* Set fill color to a variable named shark */ fill: var(--shark); /* Set width to 16 pixels */ width: 16px; /* Set height to 16 pixels */ height: 16px; /* Set fill transition duration to 0.3 seconds */ transition: fill 0.3s; } /* Apply the same fill color and fill transition to the icon's SVG and path elements */ .bpw-header-icon svg, .bpw-header-icon svg path { /* Set fill color to a variable named shark */ fill: var(--shark); /* Set fill transition duration to 0.3 seconds */ transition: fill 0.3s; } /* When the icon is hovered over, change the fill color to a variable named reef for the icon, SVG and path elements */ .bpw-header-icon:hover, .bpw-header-icon:hover svg, .bpw-header-icon:hover svg path { fill: var(--reef); }
That is what you can do
j
do i just replace that code?
or is there something specific i ned to do sry?
what does shark mean
i want to turn it into black
i saw the website but it doenst explain what shark and reef are and how u can turn them black ig
i meant colour of the header menu items
is that possible to change?
@fresh-fireman-491
even once replacing its not working
f
You don't replace it. That code just contains the thing you can customize about your header icon
You can add the parts that you want
j
when i mean header icons, i am refering to the "X" button and the other buttons on the right of the chatbot
how would you make that black
coz all botpress chatbots have that white button
i want it to be black
f
Could you send me a picture of what you are trying to change the color of
j

https://cdn.discordapp.com/attachments/1146313779701882890/1147037173955166258/image.png

do u know how to turn this X into black
if thats possible
f
So sorry for the late response. At first it didnt think we could do this but i figured it out
.bpw-header-icon-close{ /* to black */ filter: invert(1); }
That is the code
Put that in the advanced styler

https://cdn.discordapp.com/attachments/1146313779701882890/1147649328819744788/image.png

If you also want the delete button to be black
Run this code
.bpw-header-icon{ /* to black */ filter: invert(1); }
Instead of the other one