I have an HTML component that has it's opacity dynamically set with VUE. When the parent element (div) has the class opacity-50, the child element opacity is turned into 50%, even having the opacity-100 class with !important modifier.
How can i force the child to have 100% opacity while his parent has 50%?
<!-- HTML -->
<div class="opacity-50">
<i class="fa-solid fa-plus opacity-100"></i>
...A lot more html that needs to be with 50% opacity...
</div>
<style>
.opacity-50{
opacity: .5;
}
.opacity-50{
opacity: 1 !important;
}
</style>