nwb-guide icon indicating copy to clipboard operation
nwb-guide copied to clipboard

[Feature]: Interactive Tooltips

Open garrettmflynn opened this issue 1 year ago • 2 comments

What would you like to see added to the NWB GUIDE?

As @rly noted in our last meeting, it would be great to allow users to highlight and copy tooltip text. This would allow them to, for instance, take the example strain value on the Subjects table and use this as a reference for their actual values.

This feature is already supported in Tippy natively—but specifying interactive: true results in the inclusion of the tooltip as adjacent HTML to the element it's applied to.

In the case of the Subjects table, this results in the tooltip being cut off because the HandsOnTable styling requires the overflow to be hidden.

I'm not sure if there's a way around this, but we'll need to find one to have interactive tooltips on the Subject table, where we initially thought it would be most useful

Do you have any interest in helping implement the feature?

Yes.

Code of Conduct

Yes

Did you confirm this feature was not already reported?

Yes

garrettmflynn avatar Mar 11 '24 22:03 garrettmflynn

@garrettmflynn I think this was fixed/added, correct?

CodyCBakerPhD avatar Apr 16 '24 14:04 CodyCBakerPhD

No I'd tried but ran into the issues described above.

Though this problem is limited to the Subject table. I could simply exclude HandsOnTable elements from this change.

garrettmflynn avatar Apr 16 '24 20:04 garrettmflynn

Summarized and moved to https://github.com/NeurodataWithoutBorders/nwb-guide/issues/846

Re-open again whenever this starts active development

CodyCBakerPhD avatar Jun 10 '24 16:06 CodyCBakerPhD