Skip to content

Commit

Permalink
chore(docs): Changed few "we" to "you" in gatsby-link.md (#18660)
Browse files Browse the repository at this point in the history
  • Loading branch information
KillMonger1 authored and LekoArts committed Oct 15, 2019
1 parent 8da19c4 commit f641b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/gatsby-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ You can read more about it on [`@reach/router`'s documentation](https://reach.te

### Show active styles for partially matched and parent links

By default the `activeStyle` and `activeClassName` props will only be set on a `<Link>` component if the current URL matches its `to` prop _exactly_. Sometimes, we may want to style a `<Link>` as active even if it partially matches the current URL. For example:
By default the `activeStyle` and `activeClassName` props will only be set on a `<Link>` component if the current URL matches its `to` prop _exactly_. Sometimes, you may want to style a `<Link>` as active even if it partially matches the current URL. For example:

- We may want `/blog/hello-world` to match `<Link to="/blog">`
- You may want `/blog/hello-world` to match `<Link to="/blog">`
- Or `/gatsby-link/#passing-state-through-link-and-navigate` to match `<Link to="/gatsby-link">`

In instances like these, just add the `partiallyActive` prop to your `<Link>` component and the style will also be applied even if the `to` prop only is a partial match:
Expand Down

0 comments on commit f641b55

Please sign in to comment.