I'm trying to darken on hover a parent div element which has a paragraph tag inside(this is child element). The
element is affected by darkening of the parent when hovered and the color of the font goes darker as well which is not what I want to achieve (color of the
element should be bright as default).
.parent {
background-color: lightgrey
}
.parent:hover {
filter: brightness(50%); //this affects also child element
}
<div class="parent">
<p class="children">Paragraph</p>
</div>