react-hover-observer icon indicating copy to clipboard operation
react-hover-observer copied to clipboard

feature request: Option to use <span> instead of <div>

Open billiegoose opened this issue 6 years ago • 2 comments

I'm using this to style hyperlinks and the <div> wrapper messes up the flow of the page content. I can work around it for now using className and an external stylesheet to make the div display: inline but it would be nice to simply have the option to use <span> as the observing DOM element.

billiegoose avatar Sep 14 '18 16:09 billiegoose

It could also be useful to allow <tbody> as the observing element. This would permit the attachment of hover behaviors to table rows. I suppose, more generally, it would be nice to be able to provide, or to specify, the wrapper.

redler avatar Feb 15 '19 22:02 redler

Update: Using an experimental fork, I can confirm that <tbody> works like a charm.

redler avatar Feb 15 '19 23:02 redler