Skip to content

Commit d594adb

Browse files
authored
Rename pseudo class from :trigger-link to :nav-source
1 parent 4bef93f commit d594adb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

route-matching-explainer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,17 +257,17 @@ a:link-to(url("/exact?a=1")) { ... }
257257
258258
The navigation's [source element](https://html.spec.whatwg.org/multipage/#navigation-source-element) is a link, form, or submit button.
259259
260-
The `:trigger-link` pseudo class allows styling that particular link, for the course of the navigation:
260+
The `:nav-source` pseudo class allows styling that particular link, for the course of the navigation:
261261
262262
```css
263-
:trigger-link { animation-name: blink; }
263+
:nav-source { animation-name: blink; }
264264
```
265265
266-
Note that `:trigger-link` only matches link elements (similar to `:any-link`).
266+
Note that `:nav-source` only matches link elements (similar to `:any-link`).
267267
268268
### Matching a link that matches the active navigation
269269
270-
While `:trigger-link` is useful for matching the actual link that was clicked, for some use cases it is not sufficient.
270+
While `:nav-source` is useful for matching the actual link that was clicked, for some use cases it is not sufficient.
271271
For example, when going from movie details to a movie list full of thumbnails, the particular thumbnail of the movie should be style,
272272
however it was not clicked!
273273

0 commit comments

Comments
 (0)