mirror of
https://github.com/nasa/openmct.git
synced 2025-03-11 06:54:01 +00:00
- Remove background from `elementStatusColors` mixin; - Change Indicators to use more correct style of `.s-status-on`;
This commit is contained in:
parent
469e93d916
commit
61bdadc33c
@ -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 = {
|
||||||
|
@ -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 = {
|
||||||
|
@ -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"
|
||||||
|
@ -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 () {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user