- Remove background from `elementStatusColors` mixin;
- Change Indicators to use more correct style of `.s-status-on`;
This commit is contained in:
Charles Hacskaylo 2020-04-06 15:36:52 -07:00 committed by GitHub
parent 469e93d916
commit 61bdadc33c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 5 deletions

View File

@ -33,7 +33,7 @@ define(
var CONNECTED = { var CONNECTED = {
text: "Connected", text: "Connected",
glyphClass: "ok", glyphClass: "ok",
statusClass: "s-status-ok", statusClass: "s-status-on",
description: "Connected to the domain object database." description: "Connected to the domain object database."
}, },
DISCONNECTED = { DISCONNECTED = {

View File

@ -32,7 +32,7 @@ define(
var CONNECTED = { var CONNECTED = {
text: "Connected", text: "Connected",
glyphClass: "ok", glyphClass: "ok",
statusClass: "s-status-ok", statusClass: "s-status-on",
description: "Connected to the domain object database." description: "Connected to the domain object database."
}, },
DISCONNECTED = { DISCONNECTED = {

View File

@ -30,7 +30,7 @@ define(
// DISCONNECTED: HTTP failed; maybe misconfigured, disconnected. // DISCONNECTED: HTTP failed; maybe misconfigured, disconnected.
// PENDING: Still trying to connect, and haven't failed yet. // PENDING: Still trying to connect, and haven't failed yet.
var CONNECTED = { var CONNECTED = {
statusClass: "s-status-ok" statusClass: "s-status-on"
}, },
PENDING = { PENDING = {
statusClass: "s-status-warning-lo" statusClass: "s-status-warning-lo"

View File

@ -122,7 +122,7 @@ define(
it("indicates success if connection is nominal", function () { it("indicates success if connection is nominal", function () {
jasmine.clock().tick(pluginOptions.interval + 1); jasmine.clock().tick(pluginOptions.interval + 1);
ajaxOptions.success(); ajaxOptions.success();
expect(indicatorElement.classList.contains('s-status-ok')).toBe(true); expect(indicatorElement.classList.contains('s-status-on')).toBe(true);
}); });
it("indicates an error when the server cannot be reached", function () { it("indicates an error when the server cannot be reached", function () {

View File

@ -54,7 +54,6 @@
@mixin elementStatusColors($c) { @mixin elementStatusColors($c) {
// Sets bg and icon colors for elements // Sets bg and icon colors for elements
background: rgba($c, 0.5) !important;
&:before { &:before {
color: $c !important; color: $c !important;
} }