I have default color variable set on all paragraphs and heading element. When I’m hovering over a slide on the slider element, I’m changing the background color and text color. But the text color change is only being inherited by the heading element and not the paragraph element (and also not the text in the link block element).
Help me understand why this is happening as targeting the parent (or grandparent) font color should be the more specific order?
(I know I can achieve this with interactions, but please help me figure out by just using the CSS)
I know I can use custom code to achieve this, but I wanted to figure out why changing the color on hover state only affects the heading.
I saw while inspecting that the ‘all paragraph’ element is defined later in the css, which does not make any sense because, the class of the parent is the more specific class than ‘all paragraph’ element