mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 14:53:45 -04:00
Fixed non-index navigation links appearing as clickable
This commit is contained in:
@@ -607,9 +607,9 @@
|
||||
background: var(--md-default-bg-color);
|
||||
box-shadow: 0 0 px2rem(8px) px2rem(8px) var(--md-default-bg-color);
|
||||
|
||||
// Make navigation link clickable
|
||||
&--index [href] {
|
||||
pointer-events: initial;
|
||||
// Non-index section should not be clickable
|
||||
&:not(.md-nav__link--index) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
// Hide naviation icon
|
||||
|
||||
Reference in New Issue
Block a user