Skip to content

Conversation

@Cube707
Copy link
Contributor

@Cube707 Cube707 commented Mar 9, 2025

This PR implements the on-hover tool-tip for the INPUT[slider] object, similar to how it was added to the INPUT[progressBar] in #473.

When hovering the input, a small tool-tip will be displayed under the center of the slider showing the current value.


I also modified the on-hover behavior of the progress bar to make the two components consistent.

Previously one had to hover over the "filled" part of the progressbar and the tool-tip would be centered on that part.

Now the label is on the container. That means both components can now be consistently be hovered anywhere and will get the tool-tip.


Testing

test it using:

---
exampleProperty: 13
---

```meta-bind
INPUT[slider(addLabels):exampleProperty]
```

```meta-bind
INPUT[progressBar:exampleProperty]
```

@Cube707
Copy link
Contributor Author

Cube707 commented Mar 9, 2025

closes #519

@mProjectsCode
Copy link
Owner

Thanks :)

@mProjectsCode mProjectsCode merged commit 3620f11 into mProjectsCode:master Mar 9, 2025
1 check passed
@Cube707 Cube707 deleted the feat/slider-tooltip branch March 9, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants