bootstrap
bootstrap copied to clipboard
Proposed change to disabled link state docs
The current nav docs say:
For any nav component (tabs, pills, or list), add
.disabledfor gray links and no hover effects. Links will remain clickable, however, unless custom javascript is implemented to prevent those clicks.
You could instead recommend that people remove the href attribute when using the disabled class, as that's what the HTML5 spec recommends for "placeholder" links. That way, there's no need to use JS and your document semantics are improved in the process.
So when those links may be applied as button action, is there a simple and elegant workaround to prevent those disabled links to be clickable? Thanks a lot.