From c61a0059add8ed03be55601f674bf831d92898b1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 2 Jan 2017 11:52:38 -0800 Subject: [PATCH] update seletors in js --- js/src/modal.js | 2 +- js/tests/unit/modal.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/src/modal.js b/js/src/modal.js index 94abd19f49..484edcada8 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 7af5aeb272..84492cec2c 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() - $('').appendTo('#qunit-fixture') - $('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed').css('padding-right', '10px') + $('
@Johann-S
').appendTo('#qunit-fixture') + $('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top').css('padding-right', '10px') $('