-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add disabled states to navs and dropdowns #2764
Comments
Edited title to tackle two items with one stone: disabled items in both navs and dropdowns. |
I've managed to add this feature on the sidebar with: // Add disabled state for items in sidebar
.nav > li.disabled {
.opacity(40);
pointer-events: none;
}
.nav > li.disabled > a:hover {
cursor: default;
text-decoration: none;
background-color: inherit;
} Also had to include some JavaScript so that IE users could not click on the links:
|
👍 |
Added to 2.1.0-wip. |
This doesn't seem to work with button menus in 2.1.0-wip, can it be added? |
Since menu hover states have changed to a gradient background: .dropdown-menu>.disabled>a:hover,
.dropdown-menu>.disabled>a:hover {
background-color: transparent;
} Needs to be changed to this in source! background: transparent; |
Hey, I didn't find any style for disabled state of links in a nav, so here it is :
(update: changing
.nav
to.nav-list
).This also works for
.nav-tabs
&.nav-pills
:The text was updated successfully, but these errors were encountered: