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

add external link icon by default for external links in the navbar? #1630

Closed
maelle opened this issue Apr 19, 2021 · 7 comments
Closed

add external link icon by default for external links in the navbar? #1630

maelle opened this issue Apr 19, 2021 · 7 comments

Comments

@maelle
Copy link
Collaborator

maelle commented Apr 19, 2021

both nav items and the dropdown.

@maelle
Copy link
Collaborator Author

maelle commented Apr 19, 2021

example where I'd have expected it, somehow: http://openintrostat.github.io/openintro/index.html

@hadley
Copy link
Member

hadley commented Apr 19, 2021

Couldn't the user be responsible for that? (Do we have an easy way to have icon + text?)

@mine-cetinkaya-rundel
Copy link
Contributor

I agree that it would be useful to indicate you're being sent elsewhere, and ideally, there would be a way to indicate "open in new tab" (or is there already?)

@maelle
Copy link
Collaborator Author

maelle commented Apr 19, 2021

Couldn't the user be responsible for that?

I liked the idea of having it by default.

(Do we have an easy way to have icon + text?)

It doesn't seem so, I'll check soon-ish.

I agree that it would be useful to indicate you're being sent elsewhere, and ideally, there would be a way to indicate "open in new tab" (or is there already?)

I think I remember it's viewed as bad practice. 🤔

@hadley
Copy link
Member

hadley commented Apr 19, 2021

Yeah, I expect that users know how to use the appropriate browser invocation to open in a different tab if they want that.

@maelle
Copy link
Collaborator Author

maelle commented Apr 21, 2021

One can specify both text and icon, but in that case, the icon comes before the text which sounds logical when it's not an external link icon.

image

htmltools::tagList(htmltools::tags$span(class = paste(iconset, x$icon)), " ", x$text, ...)

@hadley
Copy link
Member

hadley commented Sep 21, 2021

I'm not sure this is worth it, given all the other work that we have to do.

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

Successfully merging a pull request may close this issue.

3 participants