-
Notifications
You must be signed in to change notification settings - Fork 44
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
New: Added static tooltips #304
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.
👀
@swashbuck would you be able to do the schemas and readme and examples etc? The core issue also needs +1 & review adaptlearning/adapt-contrib-core#529 |
@oliverfoster Yep, done. |
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.
👍 +1
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.
Great addition thanks. This worked as expected when testing on Mac Chrome, FF and iPhone.
When testing on Mac Safari, no tooltips were displayed when "_hasStaticTooltips": true
. This worked as expected however when "_hasStaticTooltips": false
.
Running Safari v17.5, macOS Sonoma v14.5
Re not working on Mac Safari, I'll contact Kirsty separately. |
@oliverfoster I can reproduce this, too. It looks like |
TooltipView is instantiated before Adapt loads fully. Where it is injected into the body. Odd that it's missing. If you turn off static tooltips is it there? Are the navigation bar tootips appearing? How did you figure out the element isn't there? Do you have any console errors? |
Apologies, I just don't know how to read Safari's Web Inspector. It's there but is empty. |
@oliverfoster If I load the page, navigate away to the menu, and then navigate back to the page with the Hot Graphic, the static labels appear. They are not there initially. I also think I saw the static labels after reloading the page, but it's difficult to reproduce. Maybe 1 out of 100 reloads. |
Could you remove this line and try that out please? |
I can confirm this resolves the Safari issue reported above. I've retested in FF, Chrome and iPhone too. |
Line removed here adaptlearning/adapt-contrib-core@e63be65 |
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.
I have discovered a display issue with the initial rendering of the tooltip position. I'm not able to replicate every time but sometimes the top/bottom positioning is off. Please see screen shots below.
Tooltip labels position as expected:
Tooltip labels registering incorrect pin position:
Not sure if this is Mac specific but I'm able to replicate in Chrome, Safari and FF.
As noted above, I'm not able to replicate consistently. Sometimes the issue resolves itself either by resizing the browser or selecting a Hotgraphic pin.
Tooltip _position
for the screen shot items are items 1 left
, 2 right
and 3 top
.
Will have a look. Thanks. It's suspiciously navigation bar sized. |
@kirsty-hames / @swashbuck could you please try the associate pr as a resolution? I could replicate and the pr seems to fix. adaptlearning/adapt-contrib-core#552 |
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.
Safari issue resolved thanks @oliverfoster 👍
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.
👍
fixes #303
New
_useStaticTooltips
anditem._tooltip._position
for labelling pinsTesting
grunt dev
It should look like this: