fix: tooltip position for several elements#4812
fix: tooltip position for several elements#4812walterbender merged 5 commits intosugarlabs:masterfrom
Conversation
|
✅ All Jest tests passed! This PR is ready to merge. |
|
The reason some of the tooltips are on the left is because those menu items have pull downs or confirmations that appear below. For example, New Project. Not sure I agree with these changes. |
|
Ah I see! |
|
Sure. Hiding them on click would be a better solution. |
|
✅ All Jest tests passed! This PR is ready to merge. |
|
You are still planning to hide the tooltips on click? |
|
Yess. Sorry if the activity due to syncing my fork caught your attention unnecessarily. |
|
I think it is going to have to be something that gets triggered in js/toolbar.js |
|
I tried adding an event listener to each of the nav elements that closes the tooltip on click. That doesn't work tho. I mean even a |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
@walterbender sorry for the delay. i hv added a snippet that handles closing the tooltips when the elements are clicked. Also checked in the browser and i find the behavior to be fine. Edit: Last time I tried I was adding the event listeners outside of the |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
Merging this pr will shift the position of the tooltips for elements with tooltip position set to left to bottom.
For various elements, the
data-positionattribute is set toleft. This makes the tooltips for these elements appear on the left, hiding other elements. I set the attribute tobottominstead for all these. Obviously the behaviour now hides the bottom elements, but I think (and welcome suggestions on this) that covering the non-related elements provides a better ux than covering the "sibling" or the related elements.Fixes #4809