-
Notifications
You must be signed in to change notification settings - Fork 667
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
Remove hover_text from Indicator #1282
base: develop
Are you sure you want to change the base?
Remove hover_text from Indicator #1282
Conversation
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.
I'm afraid that a simple div would force display block ...
orientation={horizontalOrientation ? undefined : "vertical"} | ||
sx={sliderSx} | ||
></Slider> | ||
<div> |
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.
I think a span would have less impact of the display ?
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.
I tried with a span and an empy <> but the tooltip doesn't work.
Do you mean a new test needs to be added to Indicator.spec.tsx
?
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.
a simple div like this is not acceptable as it would change the display behavior of the indicator to block: can't put 2 in the same line.
It looks like a tooltip directly on a Mui Slider (as used in indicator) doesn't work because the slider uses the same technique as the tooltip to show it's own different tooltips.
A div with inline
display behaves the same as a span ie shows the hover text only below the indicator.
I suppose then that a span is better than nothing but still not great ...
I wonder if we should keep the hover_text all together.
thoughts @FabienLelaquais ?
PS: it looks like the test in Indicator.spec.tsx don't pass anymore ?
please update your branch |
c36a726
to
52541a5
Compare
We're having a discussion about this with @FabienLelaquais |
Hi @Satoshi-Sh |
Sure, I can work on the task of removing the hover_text. |
52541a5
to
308a42a
Compare
I tried to delete the hover_text from the Indicator component. Could you take a look at it? @FredLL-Avaiga |
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.
Looks good to me
Could you also remove it in the factory.py file ?
and also add it in the viselements.json file so that it overrides the default description which is in shared
?
I suppose you'll also have to check the indicator.spec.tsx ?
I'm not sure about this instruction. What kind of description should I add to hover_text for the indicator? |
Something like : TODO not implemented |
308a42a
to
931fb68
Compare
I just ran |
Excellent |
Related Issue
Fixed #1147
Updates
div
to the Indicator component to capture mouseOver events.Screenshot
Reference
I referred to this link