Skip to content

Commit beb0b64

Browse files
committed
fixes twbs#4889: btn-link disabled styles
1 parent afd9312 commit beb0b64

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

docs/assets/css/bootstrap.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3389,7 +3389,8 @@ input[type="submit"].btn.btn-mini {
33893389
}
33903390

33913391
.btn-link,
3392-
.btn-link:active {
3392+
.btn-link:active,
3393+
.btn-link[disabled] {
33933394
background-color: transparent;
33943395
background-image: none;
33953396
-webkit-box-shadow: none;
@@ -3412,6 +3413,11 @@ input[type="submit"].btn.btn-mini {
34123413
background-color: transparent;
34133414
}
34143415

3416+
.btn-link[disabled]:hover {
3417+
color: #333333;
3418+
text-decoration: none;
3419+
}
3420+
34153421
.btn-group {
34163422
position: relative;
34173423
*margin-left: .3em;

less/buttons.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ input[type="submit"].btn {
208208

209209
// Make a button look and behave like a link
210210
.btn-link,
211-
.btn-link:active {
211+
.btn-link:active,
212+
.btn-link[disabled] {
212213
background-color: transparent;
213214
background-image: none;
214215
.box-shadow(none);
@@ -224,3 +225,7 @@ input[type="submit"].btn {
224225
text-decoration: underline;
225226
background-color: transparent;
226227
}
228+
.btn-link[disabled]:hover {
229+
color: @grayDark;
230+
text-decoration: none;
231+
}

0 commit comments

Comments
 (0)