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

Support for "target" in navbar components. #2089

Closed
JSchoenbachler opened this issue May 16, 2022 · 5 comments
Closed

Support for "target" in navbar components. #2089

JSchoenbachler opened this issue May 16, 2022 · 5 comments
Labels
feature a feature request or enhancement navbar 🗺️ wip work in progress
Milestone

Comments

@JSchoenbachler
Copy link
Contributor

Hey team, I was wondering if there could be a way to allow for the target tag to be specified on Navbar components?

Our use case is that we want to include a link to our Lab's website in the navbar that opens in a new tab (by using target=_blank.

@JSchoenbachler
Copy link
Contributor Author

@JSchoenbachler
Copy link
Contributor Author

Let me know if you want me to create a PR, or if anything else is needed for this to be a sufficient implementation.

@JSchoenbachler
Copy link
Contributor Author

@maelle just pinging to see if I can get a quick answer on if I approached this correctly and can make a PR!

@JSchoenbachler
Copy link
Contributor Author

@krlmlr Another ping just to see if this is an easy thing!

@maelle
Copy link
Collaborator

maelle commented May 21, 2022

@JSchoenbachler Thank you! You can open a PR as I see you've already made edits anyway.
I can't say when it'll be reviewed (nor whether it will be merged) as activity in r-lib repos tends to happen in bursts. Thanks for your patience.

In general it's recommended to start PRs not from the main branch but from another branch. See e.g. https://happygitwithr.com/fork-and-clone.html#dont-touch-master As the edits you've made are small you might want to save them somewhere else, then start fresh in another branch so your fork's main branch is the same as the current r-lib/pkgdown main branch. To start PRs, usethis helpers are most useful, see https://usethis.r-lib.org/articles/pr-functions.html

Noting that this issue is sort of related to #1630

@hadley hadley added feature a feature request or enhancement wip work in progress navbar 🗺️ labels May 31, 2022
@hadley hadley added this to the v2.0.4 milestone May 31, 2022
@hadley hadley closed this as completed in 81bd3d4 Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement navbar 🗺️ wip work in progress
Projects
None yet
Development

No branches or pull requests

3 participants