0

I have have shadow DOM element,

<div>
     <slot name="item"> <i class="icon-name"> </i> </slot>
</div>

I wanted to have hover effect to "Icon" how to write hover effect for slot element ?

Raashid A.
  • 65
  • 10

1 Answers1

1

This only works with css in the Shadow Dom. I found it here: https://codepen.io/smspp/pen/EzYGpa

::slotted(*:hover)
HomeSlice
  • 596
  • 2
  • 14