Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

make sure tooltips aren't visible when parent slider isn't #878

Merged
merged 6 commits into from
Oct 27, 2020
Merged

Conversation

jdamiba
Copy link
Contributor

@jdamiba jdamiba commented Oct 27, 2020

closes #751

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdamiba This PR will need:

  • a changelog.md entry for the bug being fixed
  • a test that shows this works -- I think in this case a simple visual test saved in Percy will do the trick. Can be based on the issue's example code. No need for interactivity or anything like that.
  • I suggest you add a comment in the code to the effect that if/when we'll update rc-slider / rc-tooltip we will need to revisit this code as the getTooltipContainer function will need to be a prop instead of a nested property

CHANGELOG.md Outdated
@@ -7,6 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- [#871](https://github.com/plotly/dash-core-components/pull/871) Add Julia syntax highlighting support for dcc.Markdown

## Updated
- [#878](https://github.com/plotly/dash-core-components/pull/878)
- used the `getTooltipContainter` prop of dcc.Slider to make sure tooltips are positioned correctly when the parent slider is not visible due to it being in a HTML element with an `overflow-x` style, fixing [#751](https://github.com/plotly/dash-core-components/issues/751)
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet Oct 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I missed the wrong level of details of https://github.com/plotly/dash-core-components/blame/dev/CHANGELOG.md#L26 which you are using as your baseline.

Make the entry more focused on what this fixes for the user. Something along the lines of:

Fix a bug causing the dcc.Slider and dcc.RangerSlider tooltip to be visible even if the component isn't visible (e.g. overflow)

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎚️ 🚢

@jdamiba jdamiba merged commit 5933e69 into dev Oct 27, 2020
@jdamiba jdamiba deleted the tooltip-fix branch October 27, 2020 21:39
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slider tooltip.always_visible doesn't position properly
2 participants