aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-01-02 11:52:38 -0800
committerMark Otto <[email protected]>2017-01-02 11:52:38 -0800
commitc61a0059add8ed03be55601f674bf831d92898b1 (patch)
treec3289c725aa4aa44d25372919adc4f1a08497077
parent2bf0bde470b1e3fa5811338c848201bb0f3fc021 (diff)
downloadbootstrap-c61a0059add8ed03be55601f674bf831d92898b1.tar.xz
bootstrap-c61a0059add8ed03be55601f674bf831d92898b1.zip
update seletors in js
-rw-r--r--js/src/modal.js2
-rw-r--r--js/tests/unit/modal.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 94abd19f4..484edcada 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -67,7 +67,7 @@ const Modal = (($) => {
DIALOG : '.modal-dialog',
DATA_TOGGLE : '[data-toggle="modal"]',
DATA_DISMISS : '[data-dismiss="modal"]',
- FIXED_CONTENT : '.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed'
+ FIXED_CONTENT : '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'
}
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js
index 7af5aeb27..84492cec2 100644
--- a/js/tests/unit/modal.js
+++ b/js/tests/unit/modal.js
@@ -379,8 +379,8 @@ $(function () {
QUnit.test('should have a paddingRight when the modal is taller than the viewport', function (assert) {
assert.expect(2)
var done = assert.async()
- $('<div class="navbar-fixed-top navbar-fixed-bottom is-fixed">@Johann-S</div>').appendTo('#qunit-fixture')
- $('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed').css('padding-right', '10px')
+ $('<div class="fixed-top fixed-bottom sticky-top is-fixed">@Johann-S</div>').appendTo('#qunit-fixture')
+ $('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top').css('padding-right', '10px')
$('<div id="modal-test"/>')
.on('shown.bs.modal', function () {
@@ -396,8 +396,8 @@ $(function () {
QUnit.test('should remove padding-right on modal after closing', function (assert) {
assert.expect(3)
var done = assert.async()
- $('<div class="navbar-fixed-top navbar-fixed-bottom is-fixed">@Johann-S</div>').appendTo('#qunit-fixture')
- $('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed').css('padding-right', '10px')
+ $('<div class="fixed-top fixed-bottom is-fixed sticky-top">@Johann-S</div>').appendTo('#qunit-fixture')
+ $('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top').css('padding-right', '10px')
$('<div id="modal-test"/>')
.on('shown.bs.modal', function () {