Commit 03d85761 by Adam

Merge pull request #3383 from edx/adam/ui-disabled-fix

change .ui-disabled to .is-disabled
parents 79fea620 6d356a45
describe("CSS3 workarounds", function() { describe("CSS3 workarounds", function() {
describe("pointer-events", function() { describe("pointer-events", function() {
beforeEach(function() { beforeEach(function() {
var html = "<a href='#' class='ui-disabled'>What wondrous life in this I lead</a>"; var html = "<a href='#' class='is-disabled'>What wondrous life in this I lead</a>";
setFixtures(html); setFixtures(html);
}); });
...@@ -14,10 +14,10 @@ describe("CSS3 workarounds", function() { ...@@ -14,10 +14,10 @@ describe("CSS3 workarounds", function() {
mockBodyStyle["pointerEvents"] = ""; mockBodyStyle["pointerEvents"] = "";
}; };
pointerEventsNone(".ui-disabled", mockBodyStyle); pointerEventsNone(".is-disabled", mockBodyStyle);
spyOnEvent(".ui-disabled", "click"); spyOnEvent(".is-disabled", "click");
$(".ui-disabled").click(); $(".is-disabled").click();
expect("click").not.toHaveBeenPreventedOn(".ui-disabled"); expect("click").not.toHaveBeenPreventedOn(".is-disabled");
}); });
it("should prevent default when pointerEvents is not Supported", function() { it("should prevent default when pointerEvents is not Supported", function() {
...@@ -31,10 +31,10 @@ describe("CSS3 workarounds", function() { ...@@ -31,10 +31,10 @@ describe("CSS3 workarounds", function() {
}; };
}; };
pointerEventsNone(".ui-disabled", mockBodyStyle); pointerEventsNone(".is-disabled", mockBodyStyle);
spyOnEvent(".ui-disabled", "click"); spyOnEvent(".is-disabled", "click");
$(".ui-disabled").click(); $(".is-disabled").click();
expect("click").toHaveBeenPreventedOn(".ui-disabled"); expect("click").toHaveBeenPreventedOn(".is-disabled");
}); });
}); });
}); });
...@@ -13,5 +13,5 @@ var pointerEventsNone = function (selector, supportedStyles) { ...@@ -13,5 +13,5 @@ var pointerEventsNone = function (selector, supportedStyles) {
}; };
$(function () { $(function () {
pointerEventsNone('.ui-disabled', document.body.styles); pointerEventsNone('.is-disabled', document.body.styles);
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment