mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-02 10:48:49 -04:00
Improved tabbing behavior in tabs mode
This commit is contained in:
@@ -304,7 +304,8 @@ function initialize(config) { // eslint-disable-line func-style
|
||||
const labels = document.querySelectorAll(
|
||||
"[data-md-component=navigation] .md-nav__link[for]:not([tabindex])")
|
||||
Array.prototype.forEach.call(labels, label => {
|
||||
label.tabIndex = 0
|
||||
if (label.offsetHeight)
|
||||
label.tabIndex = 0
|
||||
})
|
||||
}
|
||||
}).listen()
|
||||
|
||||
Reference in New Issue
Block a user