I’ve just setup the sidebar feature, and figured out the hamburger icon is not visible, like this:
But when I hover my mouse in the box, it somehow appears its icon:
How can I show the icon even when I’m not pointing my cursor in the box?
The user RHEE reported that the hamburger icon for the sidebar is not visible, only appearing on hover. Don explained that the issue is due to the --header_primary-low-mid color being the same as --header_primary, making the icon invisible. They suggested changing the icon color using CSS, specifically by adding a theme component with the following code: header-sidebar-toggle button .d-icon { color: var(--tertiary); }. RHEE initially couldn’t find the variable but was guided to the correct section. Don provided step-by-step instructions to create a new theme component and apply the CSS. RHEE confirmed the solution resolved the issue.
Hello,
It seems to your --header_primary-low-mid (which is the default header buttons) color variable is same color as --header_primary (header) color (#fff). This is why the sidebar icon is not visible. As I see on your site you are using the --tertiary color variable to the other header icons. You can also change the sidebar button color. Or you can change the header_primary-low-mid color to make it visible.
Create a new theme component or add this to an existing one
Desktop > CSS
.header-sidebar-toggle {
button {
.d-icon {
color: var(--tertiary);
}
}
}
Well, as I see non of these can controls header buttons color. This is a custom theme where you can change the colors. I think this is a remote theme so probably you cannot change the color variable color but you can check it on the /admin/customize/colors (Admin > Customize > Colors) page. On that page select the Color Palette you use and search for the header_primary-low-mid variable. If you cannot change it then you need to contact with the theme creator.
OR
You can try to add a new theme component which will change the sidebar button color.
/admin/customize/themes/.header-sidebar-toggle {
button {
.d-icon {
color: var(--tertiary);
}
}
}
Amazing, thanks for your help. It perfectly solved my issue =]