-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FIX: Tooltip position using CSS anchor positioning #32887
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
Conversation
| ) | ||
| html_output = _params_html_repr(params) | ||
|
|
||
| print(html_output) |
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.
This is some remaining debugging I think.
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.
🫣 Thanks
|
I think that you can add an entry in the changelog for the |
glemaitre
left a comment
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.
Otherwise, it is an improvement. LGTM.
thomasjpfan
left a comment
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.
Looking at the anchor-name support table it is not supported in Firefox yet.
With this change, what does the tooltip look like in Firefox?
Thanks for asking, because I forgot to check. With the latest commit, the tooltip looks in Firefox like in the other browsers before this fix. (I added @supports`) |
Reference Issues/PRs
The documentation tooltip that we introduced with #31564 is hidden if the parameter name that it belongs to, is at the bottom of the table. It's visible only after scrolling down the cell.

In this case, when we hover over
n_jobs, we get:Using CSS anchor positioning:, the result is the following (when hovering over
n_jobs). No scroll-down needed:There is no opened issue for this.
What does this implement/fix? Explain your changes.
For the record: The specs for
anchor-nameandposition-anchorcan't be placed in theparams.cssfile. When I did that, the tooltip was always visible at the bottom of the table - not next to the parameter name.(It was @glemaitre's idea that the tooltip was getting fixed to the last parameter when using Chrome.)
AI usage disclosure
I used AI assistance for:
params.pyinstead of keeping it onparams.css.Any other comments?
I tried to set Fallback options
but I haven't found the correct rule.Edit: I think the UX would be annoying if I add the fallback options.