Fixed too unspecific selector for table of contents blur on scroll

This commit is contained in:
squidfunk
2019-01-29 10:56:27 +01:00
parent 96b9a321e6
commit a182314a15
4 changed files with 4 additions and 3 deletions

View File

@@ -259,7 +259,7 @@ function initialize(config) { // eslint-disable-line func-style
/* Component: link blurring for table of contents */
new Material.Event.MatchMedia("(min-width: 960px)",
new Material.Event.Listener(window, "scroll",
new Material.Nav.Blur("[data-md-component=toc] [href]")))
new Material.Nav.Blur("[data-md-component=toc] .md-nav__link")))
/* Component: collapsible elements for navigation */
const collapsibles =