-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tooltip to ObsBadge when observation reference index is shown #4573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
val identifierStr = obs.reference.fold(obs.id.show)(_.observationIndex.toString) | ||
val identifier: VdomNode = obs.reference.fold(s"[${obs.id.show}]": VdomNode): ref => | ||
Tooltip.Fragment(content = s"${ref.label} (${obs.id})")( | ||
<.span(s"[${ref.observationIndex.toString}]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, there's a withTooltip
extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is. But, Tooltip.Fragment was used elsewhere in this file, and I didn't have to find the extension. Also, doesn't withTooltip
use the floatingui tooltip? It looks slightly different than the prime ones. Or, is there a withTooltip
for prime tooltips also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. I searched in Explore and found a withTooltip
usage that uses prime. I can switch to that.
BundleMonFiles updated (1)
Unchanged files (7)
Total files change +348B +0.01% Final result: ✅ View report in BundleMon website ➡️ |
No description provided.