When I collapse my sidebar I want the text to hide and keep the SVG visible.
It works as expected but for some reason when the sidebar is collapsed, the SVG of 'Projects' disappears (the other svg's are displayed as expected)
What I've tried:
CSS (truncated)
Added a rule to don't show the Projects text when the sidebar is collapsed (not working)
#sidebar.active #sidebarProjectsText{
display: none;
}
Added a rule to display: block the svg when the sidebar is active or not active (not working)
#sidebar #projectsSvg,
#sidebar.active #projectsSvg {
display: block;
}
Desired output:
- Text
Projectsand arrow disappear when collapsing - Svg image visible always regardless the state of the sidebar (active or not active)
what am I doing wrong?
UPDATE with Nimeshka Srimal answer:
I tried to apply the suggestion of Nimeshka Srimal but then, when toggling the sidebar the svg image gets smaller. It solved my problem but it created a new one.
