This commit is contained in:
Mark Otto 2016-02-16 20:09:57 -08:00
parent c5c0728559
commit 3b84ffcc54
13 changed files with 24 additions and 14 deletions

View File

@ -4508,7 +4508,7 @@ input[type="button"].btn-block {
.label {
display: inline-block;
padding: .25em .4em;
padding: 0.25em 0.4em;
font-size: 75%;
font-weight: bold;
line-height: 1;
@ -4535,8 +4535,8 @@ a.label:focus, a.label:hover {
}
.label-pill {
padding-right: .6em;
padding-left: .6em;
padding-right: 0.6em;
padding-left: 0.6em;
border-radius: 10rem;
}

File diff suppressed because one or more lines are too long

View File

@ -462,6 +462,8 @@ var Button = (function ($) {
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
$(input).trigger('focus');
}
} else {
this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));

File diff suppressed because one or more lines are too long

View File

@ -108,6 +108,8 @@
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
$(input).trigger('focus');
}
} else {
this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));

File diff suppressed because one or more lines are too long

View File

@ -4508,7 +4508,7 @@ input[type="button"].btn-block {
.label {
display: inline-block;
padding: .25em .4em;
padding: 0.25em 0.4em;
font-size: 75%;
font-weight: bold;
line-height: 1;
@ -4535,8 +4535,8 @@ a.label:focus, a.label:hover {
}
.label-pill {
padding-right: .6em;
padding-left: .6em;
padding-right: 0.6em;
padding-left: 0.6em;
border-radius: 10rem;
}

File diff suppressed because one or more lines are too long

View File

@ -462,6 +462,8 @@ var Button = (function ($) {
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
$(input).trigger('focus');
}
} else {
this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));

File diff suppressed because one or more lines are too long

View File

@ -108,6 +108,8 @@
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
$(input).trigger('focus');
}
} else {
this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));

2
js/dist/button.js vendored
View File

@ -95,6 +95,8 @@ var Button = (function ($) {
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
$(input).trigger('focus');
}
} else {
this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));

File diff suppressed because one or more lines are too long