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

FR: Way to have more subtle hyperlinks (support text-decoration: "none") #614

Closed
olivroy opened this issue Jun 20, 2023 · 2 comments
Closed

Comments

@olivroy
Copy link
Contributor

olivroy commented Jun 20, 2023

Hi, I was wondering if it was possible to have more subtle Hyperlinks, i.e. without the dotted line under.

I tried with the text-decoration parameter, but it doesn't work.

div <- function() {
  cli::cli_div(theme = list(span.href = list("text-decoration" = "none")))
  cli::cli_text("{.href [link](https://github.com)}")
}
div() # doesn't change the style.

However, changing the text-decoration to "underline" works.

div <- function() {
  cli::cli_div(theme = list(span.href = list("text-decoration" = "none")))
  cli::cli_text("{.href [link](https://github.com)}")
}
div() # puts underline instead of dotted.

Alternatively, could the dotted line be more subtle.

Thanks.

@gaborcsardi
Copy link
Member

cli does not add any decoration AFAICT:
Screenshot 2023-06-20 at 2 59 22 PM

If you are seeing this is RStudio, then the decoration is added by RStudio.

@olivroy
Copy link
Contributor Author

olivroy commented Jun 20, 2023

Ah ok, thanks!

@olivroy olivroy closed this as completed Jun 20, 2023
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

No branches or pull requests

2 participants