Skip to content

[BUG] Tooltip zindex incorrect on overlapping sliders #3632

@ColinGeukes

Description

@ColinGeukes

Thanks for helping with the previous bug I had, no I have another small visual bug with the sliders and their tooltips

Context

dash                       4.0.0
  • OS: macOS
  • Browser Chrome
  • Version 145.0.7632.45

Describe the bug
The tooltip is placed under the next slider
Image

Expected behavior
The tooltip should be placed on top of the next slider

Reproducing code

from dash import Dash, dcc, html

app = Dash(__name__)

app.layout = html.Div(
    children=[
        dcc.Slider(0, 100, 1, value=10, id="my-slider", tooltip={"placement": "bottom", "always_visible": True}),
        dcc.Slider(0, 20, 5, value=10, id="my-slider2", tooltip={"placement": "bottom", "always_visible": True}),
    ]
)

if __name__ == "__main__":
    app.run(debug=True)

Thanks again for the amazing work ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions