react-component / react-component/slider

Way to apply tooltop to dots?

Open
#561 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.1k
Forks
768
Avg merge
11d 22h
Merged PRs (30d)
5

Description

I can see that this was asked before. The last asker was directed to StackOverflow for support. https://github.com/react-component/slider/issues/388. I don't feel that my question is a support question, so I'm asking again. Feel free to close if you feel I am incorrect.

I've looked through the source code for a way to apply a custom tooltip on the dots on the steps bar. It appears the dots are drawn here:

https://github.com/react-component/slider/blob/18c8939dade914d645e8272221cbee0a16b8d128/src/common/Steps.jsx#L40

There doesn't appear to be a way to nest any text in there to show a tooltip. Two questions.

  1. Did I miss something?
  2. If not, is there interest in a PR to add this functionality?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading src/common/Steps.jsx at the referenced line to see how the step dots are rendered and whether existing customization is available. Determine the intended tooltip behavior and implementation scope; done means establishing whether the current API supports custom dot tooltips or defining the needed feature clearly enough for a PR.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.