Replace foundation tooltips with custom implementation#3462
Conversation
Test results 12 files 12 suites 12m 19s ⏱️ Results for commit 59f2112. ♻️ This comment has been updated with latest results. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3462 +/- ##
=======================================
Coverage 61.09% 61.09%
=======================================
Files 610 610
Lines 44715 44715
Branches 43 43
=======================================
Hits 27319 27319
Misses 17386 17386
Partials 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
12ce8c1 to
f1d4ac1
Compare
hmpf
left a comment
There was a problem hiding this comment.
Whitespace around the text is inconsistent.
Are you referring to the "l2trace" tooltip? Other than the width, this is identical to the foundation tooltip. The ul/li elements are affected by some global css, which I've not adjuster in this PR as I'm not sure of the side effects. |
f1d4ac1 to
ffaf165
Compare
|
@hmpf I adjusted the whitespace (removing trailing margin) and font-size to make it consistent. Also added the bullet points to make it clearer that it is a list. |




Scope and purpose
Part of #2972.
Adds an implementation for a custom NAV Tooltip. This PR replaces usages of
[data-tooltip]throughout the codebase, with the exception of one case in the Status tool that should be done in a follow-up task, namely #3463 .The new tooltip supports alignment from the start or end of the trigger element, and automatic change of alignment if the tooltip extends beyond the viewport.
This pull request
foundation-5/field.htmlorcustom_crispy_templates/field_helptext_as_icon.htmlScreenshots
Before
/search/room/100/#!netboxinterfaces

/alertprofiles/profile/1026/

/l2trace/

After
/search/room/100/#!netboxinterfaces

/alertprofiles/profile/1026/

/l2trace/

Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to NAV can be found in the
Hacker's guide to NAV.
<major>.<minor>.x). For a new feature or other additions, it should be based onmaster.