Comments (6)
@davatron5000 This is a good question, so would love to hear some more input on this matter.
from responsive-nav.js.
In case you end up removing the tab-index option jshawl@f29b957
from responsive-nav.js.
It might be good to expose this setting through the API, because it could be good for some applications, but only as a conditional enhancement. Like:
if(opts.tabIndex) {
setAttributes(toggle, {
"tabindex": opts.tabIndex
}
}
Then the default would just be 0
or false
. I guess it depends if its necessary for the plugin to work. I think the general rule of thumb for tabindex
is: "if you don't need it, don't use it".
from responsive-nav.js.
@davatron5000 I like that approach. Based on this, I would probably remove it completely from the defaults and use something like that.
But also: not sure if it needs a setting at all(?) as one can also use “customToggle” option and write his/her own html for the toggle if needed.
from responsive-nav.js.
@davatron5000 Decided to remove the whole option after considering this more, so closing this issue.
If someone feels it's needed, we can continue the discussion here. :-)
from responsive-nav.js.
@viljamis I think that's a good call! I looked into it more and it seems that fussing with tab-index typically results in disaster. So yay! Nice work. New favorite plugin 🍔
from responsive-nav.js.
Related Issues (20)
- Navigation height with nested <ul> HOT 2
- responsiveNav is not defined HOT 2
- left nav cascaded
- Nav is buged
- closeOnNavClick variable changes location
- Multi-Level Responsive Nav
- Just a navigation. Clicking on navigation doesn't slide to anchor points?
- Checking if class exists
- Add opacity onScroll
- Support for Multi-level Nav HOT 1
- Appears from left or right
- Change hamburger to be an image so doesnt flash on page load
- Multilevel not opening on Android Chrome
- Using different customToggle when js-nav-active
- Plugin installation failed. (No valid plugins were found.)
- Nav not scrollable on dropdowns (where submenus available)
- Not working
- Unable to preventDefault inside passive event listener invocation. HOT 1
- How to initialize with a toggle?
- Explanation for installation process
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from responsive-nav.js.