Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Alignment and Color change #367

Merged
merged 1 commit into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sass/components/Dashboard/alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
}

.kubevirt-alert__icon--critical {
color: red;
color: #c9190b;
}

.kubevirt-alert__icon--warning {
color: goldenrod;
color: #f0ab00;
}
4 changes: 4 additions & 0 deletions sass/components/Dashboard/capacity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
margin-top: 0;
}

.kubevirt-capacity__item-description {
font-size: 0.6875em;
}

.kubevirt-capacity__item .donut-title-big-pf {
font-size: 24px;
}
Expand Down
4 changes: 4 additions & 0 deletions sass/components/Dashboard/health.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
.kubevirt-health__icon--ok {
color: #92d400;
}

.kubevirt-health__icon--warning {
color: #f0ab00;
}
2 changes: 1 addition & 1 deletion sass/components/StorageOverview/data-resiliency.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

.kubevirt-data-resiliency__dashboard-body {
height: 13.8em;
height: 15.9em;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ exports[`<Capacity /> renders correctly 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
CPU
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
50 % available out of 100 %
</h6>
<div
Expand Down Expand Up @@ -91,12 +93,14 @@ exports[`<Capacity /> renders correctly 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Memory
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
1.0 Mi available out of 1 Mi
</h6>
<div
Expand Down Expand Up @@ -160,12 +164,14 @@ exports[`<Capacity /> renders correctly 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Storage
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
5 Ki available out of 10 Ki
</h6>
<div
Expand Down Expand Up @@ -229,12 +235,14 @@ exports[`<Capacity /> renders correctly 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Network
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
5 Bps available out of 10 Bps
</h6>
<div
Expand Down Expand Up @@ -322,12 +330,14 @@ exports[`<Capacity /> renders correctly in Loading state 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
CPU
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
<div>
<div
class="spinner spinner-md blank-slate-pf-icon"
Expand Down Expand Up @@ -395,12 +405,14 @@ exports[`<Capacity /> renders correctly in Loading state 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Memory
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
<div>
<div
class="spinner spinner-md blank-slate-pf-icon"
Expand Down Expand Up @@ -468,12 +480,14 @@ exports[`<Capacity /> renders correctly in Loading state 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Storage
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
<div>
<div
class="spinner spinner-md blank-slate-pf-icon"
Expand Down Expand Up @@ -541,12 +555,14 @@ exports[`<Capacity /> renders correctly in Loading state 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Network
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
<div>
<div
class="spinner spinner-md blank-slate-pf-icon"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Dashboard/Capacity/CapacityItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export const CapacityItem = ({ id, title, used, total, unit, formatValue, Loadin
}
return (
<div className="kubevirt-capacity__item">
<h3 className="kubevirt-capacity__item-title">{title}</h3>
<h6>{description}</h6>
<div className="kubevirt-capacity__item-title">{title}</div>
<h6 className="kubevirt-capacity__item-description">{description}</h6>
<div id={prefixedId('donut-chart', id)} className="kubevirt-capacity__graph">
<svg viewBox={`0 0 ${CHART_WIDTH} ${CHART_HEIGHT}`}>
<ChartDonut
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ exports[`<CapacityItem /> renders correctly 1`] = `
<div
className="kubevirt-capacity__item"
>
<h3
<div
className="kubevirt-capacity__item-title"
>
title
</h3>
<h6>
</div>
<h6
className="kubevirt-capacity__item-description"
>
50 unit available out of 100 unit
</h6>
<div
Expand Down Expand Up @@ -526,12 +528,14 @@ exports[`<CapacityItem /> renders correctly 2`] = `
<div
className="kubevirt-capacity__item"
>
<h3
<div
className="kubevirt-capacity__item-title"
>
title
</h3>
<h6>
</div>
<h6
className="kubevirt-capacity__item-description"
>
<InlineLoading
size="md"
/>
Expand Down Expand Up @@ -1048,12 +1052,14 @@ exports[`<CapacityItem /> renders correctly 3`] = `
<div
className="kubevirt-capacity__item"
>
<h3
<div
className="kubevirt-capacity__item-title"
>
title
</h3>
<h6>
</div>
<h6
className="kubevirt-capacity__item-description"
>
Not available
</h6>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ exports[`<Capacity /> renders correctly 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Total capacity
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
<div>
<div
class="spinner spinner-md blank-slate-pf-icon"
Expand Down Expand Up @@ -119,12 +121,14 @@ exports[`<Capacity /> renders correctly in Loading state 1`] = `
<div
class="kubevirt-capacity__item"
>
<h3
<div
class="kubevirt-capacity__item-title"
>
Total capacity
</h3>
<h6>
</div>
<h6
class="kubevirt-capacity__item-description"
>
<div>
<div
class="spinner spinner-md blank-slate-pf-icon"
Expand Down