]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add .disabled class styling for .btn-styles 15482/head
authorliias <madisliias@gmail.com>
Fri, 2 Jan 2015 09:28:09 +0000 (11:28 +0200)
committerliias <madisliias@gmail.com>
Fri, 2 Jan 2015 09:28:09 +0000 (11:28 +0200)
Bootstrap itself has .btn-default.disabled styled. IE8 with angularjs has some weird behaviour if anchor has disabled attribute set, so I use disabled class as a workaround and assume the .disabled class styles the buttons the same as disabled attribute would.

less/theme.less

index 3673accc0999596e2d285f2adacce602146345fa..6f2eb62126f12b00cde15580964870c7c3e4eb4c 100644 (file)
@@ -52,6 +52,7 @@
     border-color: darken(@btn-color, 14%);
   }
 
+  &.disabled,
   &:disabled,
   &[disabled] {
     background-color: darken(@btn-color, 12%);