Add a new style that supports tooltips

Open
#646 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
cli

Research direction

Start with the existing style_hyperlink() entry point and the example in this issue to understand how its tooltip behavior currently works. Determine the intended separate tooltip style and verify that hovering text displays the supplied message without requiring hyperlink styling.

Written by the indexing model from the issue text.

Description

feature

It would be useful to add tooltip messages that show up when the text is hovered over. At this time, style_hyperlink() can be used to get that effect, but @hadley suggested that it would be useful to support it properly.

cli::style_hyperlink("label", "tooltip text")

https://github.com/r-lib/cli/assets/77294576/5bd83928-9818-447b-a782-44d99a5f70a5

Dominant language
R
Stars
726
Forks
94
Avg merge
3h 35m
Merged PRs (30d)
1

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.

More from r-lib/cli

All issues in r-lib/cli

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.