react-component / react-component/tree

Tooltip is the same as Label

Open
#745 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
490
Avg merge
3d 17h
Merged PRs (30d)
5

Description

If I have an item labeled "California", when I hover over it, the tooltip also says "California". Why would I want a tooltip like that? The tooltip is supposed to say something informative - something different.

Maybe this is a design mistake. To add a tooltip in native HTML, you use the 'title' attribute on an element. Unfortunately, you chose the same name for the label on your items.

There should be two props because there are two different concepts:

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 locating the TreeNode prop definitions and the code that renders the native HTML title attribute. Separate the label and tooltip inputs so callers can provide informative hover text without changing the visible label. Done when the example in the issue renders different values and existing label-only usage remains compatible; update relevant tests if present.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.