I have an a tag and a button in navigation:
<nav class="navigation">
<a href="./index.html" class="logo-header"><span class="logo-part">Web</span>Project</a>
<button type="button" class="menu-button" aria-expanded="false" aria-controls="menu-container" data-menu-button>
<svg class="menu-icons" width="40" height="40" aria-label="mobile menu control ">
<use class="menu__nav-cross" href="./images/sprite.svg#nav-cross"></use>
<use class="menu__nav-menu" href="./images/sprite.svg#nav-open"></use>
</svg>
</button>
When I press the button from js script it adds a class to the button "is-open". I want to make it so that when the class "is-open" present, a tag is not displayed using css. I tried doing something like this but it doesnt work:
.menu-button.is-open .logo-header{
display: none;
}