Skip to content
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

Positioning of tourtip #1766

Closed
cc-ebay opened this issue Sep 23, 2022 · 1 comment
Closed

Positioning of tourtip #1766

cc-ebay opened this issue Sep 23, 2022 · 1 comment

Comments

@cc-ebay
Copy link
Contributor

cc-ebay commented Sep 23, 2022

Bug Report Feature Request

eBayUI Version: 11 and 12

Description

According to the Playbook:

Preferred placement
Tourtips can have a preferred placement in relation to their anchor element. The tourtip will default to this placement as long as it will fit within the viewport. Otherwise, it will adjust its placement to fit.

Currently the tour tip is pretty dumb when it comes to positioning. A good solution requires more JS code.
Good examples of adaptive positioning are in TippyJS and the good old qTips2.

I would also add that the style-* attributes are not very useful. When used they also remove the transform: translate... that most of the time is useful.

The tooltip should definitely be "centered" accordingly to the target and ideally should also change the position according to the space available in the viewport.

Workaround

None at the time. Pick a good position and cross your fingers.

Screenshots

This is Tippy:

tippy

@agliga
Copy link
Contributor

agliga commented Oct 19, 2022

Closing: dup of #535

@agliga agliga closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants