Skip to content
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

[FEATURE]: Tooltip for column headers #557

Closed
5 tasks done
MFarejowicz opened this issue Apr 27, 2020 · 2 comments
Closed
5 tasks done

[FEATURE]: Tooltip for column headers #557

MFarejowicz opened this issue Apr 27, 2020 · 2 comments
Labels
wontfix This will not be worked on

Comments

@MFarejowicz
Copy link

MFarejowicz commented Apr 27, 2020

Feature Check list

  • Agree to the Code of Conduct
  • Read the README to ensure the feature is not already present
  • You read Creating Issues, Features and Pull Requests
  • Considered the value versus complexity for all users of the library as well as library maintenance
  • Considered if this can be a storybook or documentation example

Is your feature request related to a problem? Please describe

Somewhat? I'm developing a table where I'm trying to keep the column names short to save space, but this makes the meaning less obvious.

Describe the solution you'd like

A tooltip on column name hover with additional text would be perfect. I could see an additional property being added to the columns object such as tooltip or tooltipText of type string, which when provided adds a tooltip that appears whenever you hover over the column name.

Describe alternatives you've considered

I could have a legend explaining the columns before, after, or to the side of my table, but this is less intuitive and fairly space inefficient.

I don't believe this is possible given the current props we can provide to the table (and if it can be, I'm not sure how), so it can't simply be an example in the documentation.

Additional context

Example of a table that implements this behavior:
Screen Shot 2020-04-27 at 12 34 37 PM

Thanks for your time!

@jbetancur
Copy link
Owner

I generally think we also need this feature, my concern is all the extra overhead to make this work. Like a lib that already does this adds deps. (Popper.js!?) Also how do I know when to show the tool tips. What about mobile? Can we opt in the overhead. Alternatively, I could allow you to set a title on the column header which moat browsers will convert to a top tip. The ux is clunky on the browser title based tool tips but its better than nothing. I’m open to suggestions or ideas on implementing.

@stale
Copy link

stale bot commented May 27, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 27, 2020
@stale stale bot closed this as completed Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants