diff --git a/sass/components/Dashboard/dashboard.scss b/sass/components/Dashboard/dashboard.scss
index c4544904d..7bc006d26 100644
--- a/sass/components/Dashboard/dashboard.scss
+++ b/sass/components/Dashboard/dashboard.scss
@@ -1,13 +1,14 @@
.kubevirt-dashboard__body {
- padding: .75rem;
+ padding: 0.75rem;
background-color: whitesmoke;
}
.kubevirt-dashboard__card {
- margin: .75rem;
- .card-pf-title {
- font-size:1rem;
- }
+ margin: 0.75rem;
+}
+
+.kubevirt-dashboard__card-title {
+ font-size: 1rem;
}
.kubevirt-dashboard__card-heading {
diff --git a/src/components/ClusterOverview/Alerts/tests/__snapshots__/Alerts.test.js.snap b/src/components/ClusterOverview/Alerts/tests/__snapshots__/Alerts.test.js.snap
index e8e2da958..b25b43ed5 100644
--- a/src/components/ClusterOverview/Alerts/tests/__snapshots__/Alerts.test.js.snap
+++ b/src/components/ClusterOverview/Alerts/tests/__snapshots__/Alerts.test.js.snap
@@ -7,7 +7,9 @@ exports[` renders correctly 1`] = `
-
+
Alerts
diff --git a/src/components/ClusterOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap b/src/components/ClusterOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap
index 4abcd282e..76db1abe5 100644
--- a/src/components/ClusterOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap
+++ b/src/components/ClusterOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster Capacity
@@ -100,7 +100,7 @@ exports[` renders correctly in Loading state 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster Capacity
diff --git a/src/components/ClusterOverview/Compliance/tests/__snapshots__/Compliance.test.js.snap b/src/components/ClusterOverview/Compliance/tests/__snapshots__/Compliance.test.js.snap
index 5ae896153..88df5b6d3 100644
--- a/src/components/ClusterOverview/Compliance/tests/__snapshots__/Compliance.test.js.snap
+++ b/src/components/ClusterOverview/Compliance/tests/__snapshots__/Compliance.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster Compliance
diff --git a/src/components/ClusterOverview/Details/tests/__snapshots__/Details.test.js.snap b/src/components/ClusterOverview/Details/tests/__snapshots__/Details.test.js.snap
index 5115c9f8d..1a8ced9f3 100644
--- a/src/components/ClusterOverview/Details/tests/__snapshots__/Details.test.js.snap
+++ b/src/components/ClusterOverview/Details/tests/__snapshots__/Details.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Details
diff --git a/src/components/ClusterOverview/Events/tests/__snapshots__/Events.test.js.snap b/src/components/ClusterOverview/Events/tests/__snapshots__/Events.test.js.snap
index 5869749a0..de78fc444 100644
--- a/src/components/ClusterOverview/Events/tests/__snapshots__/Events.test.js.snap
+++ b/src/components/ClusterOverview/Events/tests/__snapshots__/Events.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading kubevirt-events__card-header"
>
Cluster Events
@@ -18,7 +18,7 @@ exports[` renders correctly 1`] = `
>
diff --git a/src/components/ClusterOverview/Health/tests/__snapshots__/Health.test.js.snap b/src/components/ClusterOverview/Health/tests/__snapshots__/Health.test.js.snap
index 63ed01ad9..1aec15091 100644
--- a/src/components/ClusterOverview/Health/tests/__snapshots__/Health.test.js.snap
+++ b/src/components/ClusterOverview/Health/tests/__snapshots__/Health.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster Health
diff --git a/src/components/ClusterOverview/Health/tests/__snapshots__/HealthBody.test.js.snap b/src/components/ClusterOverview/Health/tests/__snapshots__/HealthBody.test.js.snap
index 63ed01ad9..1aec15091 100644
--- a/src/components/ClusterOverview/Health/tests/__snapshots__/HealthBody.test.js.snap
+++ b/src/components/ClusterOverview/Health/tests/__snapshots__/HealthBody.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster Health
diff --git a/src/components/ClusterOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap b/src/components/ClusterOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap
index 74ce0ac01..8d143421a 100644
--- a/src/components/ClusterOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap
+++ b/src/components/ClusterOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster inventory
@@ -18,7 +18,7 @@ exports[` renders correctly 1`] = `
>
@@ -42,7 +42,7 @@ exports[` renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Top Consumers
@@ -18,7 +18,7 @@ exports[` renders correctly 1`] = `
>
diff --git a/src/components/ClusterOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap b/src/components/ClusterOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap
index 7d8c9a24b..44a2dd713 100644
--- a/src/components/ClusterOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap
+++ b/src/components/ClusterOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster Utilization
@@ -119,7 +119,7 @@ exports[` renders correctly in Loading state 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster Utilization
diff --git a/src/components/ClusterOverview/tests/__snapshots__/ClusterOverview.test.js.snap b/src/components/ClusterOverview/tests/__snapshots__/ClusterOverview.test.js.snap
index 4abdaadf1..15b3e0cab 100644
--- a/src/components/ClusterOverview/tests/__snapshots__/ClusterOverview.test.js.snap
+++ b/src/components/ClusterOverview/tests/__snapshots__/ClusterOverview.test.js.snap
@@ -24,7 +24,7 @@ exports[` renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Details
@@ -83,7 +83,7 @@ exports[` renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Cluster inventory
@@ -93,7 +93,7 @@ exports[` renders correctly with Provider 1`] = `
>
@@ -117,7 +117,7 @@ exports[` renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading kubevirt-events__card-header"
>
Cluster Events
@@ -267,7 +267,7 @@ exports[` renders correctly with Provider 1`] = `
>
@@ -295,7 +295,7 @@ exports[` renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Top Consumers
@@ -305,7 +305,7 @@ exports[` renders correctly with Provider 1`] = `
>
diff --git a/src/components/Dashboard/DashboardCard/DashboardCardTitle.js b/src/components/Dashboard/DashboardCard/DashboardCardTitle.js
index c8c2b9c8e..5f0152bd3 100644
--- a/src/components/Dashboard/DashboardCard/DashboardCardTitle.js
+++ b/src/components/Dashboard/DashboardCard/DashboardCardTitle.js
@@ -1,15 +1,22 @@
import React from 'react';
import PropTypes from 'prop-types';
+import classNames from 'classnames';
import { CardTitle } from 'patternfly-react';
-const DashboardCardTitle = ({ children, ...props }) => {children};
+const DashboardCardTitle = ({ className, children, ...props }) => (
+
+ {children}
+
+);
DashboardCardTitle.defaultProps = {
children: null,
+ className: null,
};
DashboardCardTitle.propTypes = {
children: PropTypes.node,
+ className: PropTypes.string,
};
export default DashboardCardTitle;
diff --git a/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitle.test.js.snap b/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitle.test.js.snap
index 894410e74..7442e042c 100644
--- a/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitle.test.js.snap
+++ b/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitle.test.js.snap
@@ -2,7 +2,7 @@
exports[` renders correctly 1`] = `
content
diff --git a/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitleHelp.test.js.snap b/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitleHelp.test.js.snap
index 4d009d908..377b52b66 100644
--- a/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitleHelp.test.js.snap
+++ b/src/components/Dashboard/DashboardCard/tests/__snapshots__/DashboardCardTitleHelp.test.js.snap
@@ -28,8 +28,8 @@ exports[` renders correctly 1`] = `
disabled={false}
>
diff --git a/src/components/Dashboard/Inventory/InventoryItemStatus.js b/src/components/Dashboard/Inventory/InventoryItemStatus.js
index 37951436f..ede5e4fc0 100644
--- a/src/components/Dashboard/Inventory/InventoryItemStatus.js
+++ b/src/components/Dashboard/Inventory/InventoryItemStatus.js
@@ -8,7 +8,11 @@ const StatusPropTypes = {
const OkStatus = ({ count }) => (
-
+
{count}
);
@@ -17,7 +21,11 @@ OkStatus.propTypes = StatusPropTypes;
const WarnStatus = ({ count }) => (
-
+
{count}
);
@@ -26,7 +34,11 @@ WarnStatus.propTypes = StatusPropTypes;
const ErrorStatus = ({ count }) => (
-
+
{count}
);
@@ -35,7 +47,11 @@ ErrorStatus.propTypes = StatusPropTypes;
const InProgressStatus = ({ count }) => (
-
+
{count}
);
diff --git a/src/components/Dashboard/Inventory/tests/__snapshots__/InventoryItemStatus.test.js.snap b/src/components/Dashboard/Inventory/tests/__snapshots__/InventoryItemStatus.test.js.snap
index 623d8519a..badfead94 100644
--- a/src/components/Dashboard/Inventory/tests/__snapshots__/InventoryItemStatus.test.js.snap
+++ b/src/components/Dashboard/Inventory/tests/__snapshots__/InventoryItemStatus.test.js.snap
@@ -9,7 +9,7 @@ exports[` renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
API renders correctly 1`] = `
-
+
Red Card
@@ -78,17 +80,17 @@ exports[` API renders correctly 1`] = `
type="button"
>
@@ -155,12 +157,14 @@ exports[` API renders correctly 1`] = `
-
+
Blue Card
diff --git a/src/components/StorageOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap b/src/components/StorageOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap
index 3104cae70..89c8bee9d 100644
--- a/src/components/StorageOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap
+++ b/src/components/StorageOverview/Capacity/tests/__snapshots__/Capacity.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Capacity
@@ -53,7 +53,7 @@ exports[` renders correctly in Loading state 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Capacity
diff --git a/src/components/StorageOverview/Details/tests/__snapshots__/Details.test.js.snap b/src/components/StorageOverview/Details/tests/__snapshots__/Details.test.js.snap
index d313cccc3..5daaf367c 100644
--- a/src/components/StorageOverview/Details/tests/__snapshots__/Details.test.js.snap
+++ b/src/components/StorageOverview/Details/tests/__snapshots__/Details.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
OCS Details
diff --git a/src/components/StorageOverview/Events/tests/__snapshots__/Events.test.js.snap b/src/components/StorageOverview/Events/tests/__snapshots__/Events.test.js.snap
index 8da2a073e..774c65c92 100644
--- a/src/components/StorageOverview/Events/tests/__snapshots__/Events.test.js.snap
+++ b/src/components/StorageOverview/Events/tests/__snapshots__/Events.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading kubevirt-events__card-header"
>
Events
@@ -18,7 +18,7 @@ exports[` renders correctly 1`] = `
>
diff --git a/src/components/StorageOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap b/src/components/StorageOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap
index a4ce54a21..6ad2fa101 100644
--- a/src/components/StorageOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap
+++ b/src/components/StorageOverview/Inventory/tests/__snapshots__/Inventory.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Inventory
@@ -18,7 +18,7 @@ exports[` renders correctly 1`] = `
>
@@ -42,7 +42,7 @@ exports[` renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Health
diff --git a/src/components/StorageOverview/OCSHealth/tests/__snapshots__/HealthBody.test.js.snap b/src/components/StorageOverview/OCSHealth/tests/__snapshots__/HealthBody.test.js.snap
index a1d87a169..76b8ea1c9 100644
--- a/src/components/StorageOverview/OCSHealth/tests/__snapshots__/HealthBody.test.js.snap
+++ b/src/components/StorageOverview/OCSHealth/tests/__snapshots__/HealthBody.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Health
diff --git a/src/components/StorageOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap b/src/components/StorageOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap
index 84eddc203..71830c2f3 100644
--- a/src/components/StorageOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap
+++ b/src/components/StorageOverview/Utilization/tests/__snapshots__/Utilization.test.js.snap
@@ -8,7 +8,7 @@ exports[` renders correctly 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Perfrormance
@@ -119,7 +119,7 @@ exports[` renders correctly in Loading state 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Perfrormance
diff --git a/src/components/StorageOverview/tests/__snapshots__/StorageOverview.test.js.snap b/src/components/StorageOverview/tests/__snapshots__/StorageOverview.test.js.snap
index 95272b27d..18d0bdda0 100644
--- a/src/components/StorageOverview/tests/__snapshots__/StorageOverview.test.js.snap
+++ b/src/components/StorageOverview/tests/__snapshots__/StorageOverview.test.js.snap
@@ -24,7 +24,7 @@ exports[` renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
OCS Details
@@ -71,7 +71,7 @@ exports[` renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Inventory
@@ -81,7 +81,7 @@ exports[` renders correctly with Provider 1`] = `
>
@@ -105,7 +105,7 @@ exports[` renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
>
renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading"
>
Perfrormance
@@ -342,7 +342,7 @@ exports[` renders correctly with Provider 1`] = `
class="card-pf-heading kubevirt-dashboard__card-heading kubevirt-events__card-header"
>
Events
@@ -352,7 +352,7 @@ exports[` renders correctly with Provider 1`] = `
>