Skip to content

Commit 08bc01c

Browse files
committed
chore: fixes in the finance portfolio application
1 parent 09402e6 commit 08bc01c

File tree

6 files changed

+76
-7
lines changed

6 files changed

+76
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.main {
22
min-height: 450px;
3+
background-color: rgba(236, 238, 239, .5);
34
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.stock-item {
2+
padding-top: 1rem;
3+
padding-bottom: 1rem;
4+
cursor: pointer;
5+
&:hover {
6+
background-color: #e6e6e6;
7+
}
8+
}
9+
10+
.stock-item-symbol {
11+
line-height: 1;
12+
display: block;
13+
font-size: 14px;
14+
color: #007BFF;
15+
}
16+
17+
.stock-item-name {
18+
line-height: 1;
19+
display: block;
20+
21+
font-size: 11px;
22+
color: #55595C;
23+
}

examples/kendo-react-finance-portfolio/src/components/HeatmapView.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React from 'react';
22
import { dataService } from '../services';
3+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
34
import $ from 'jquery';
45
import '@progress/kendo-ui';
56
import { Tooltip } from '@progress/kendo-react-tooltip';
7+
declare const window: any;
68

79
type HeatMapItemType = {
810
name : string;
@@ -20,8 +22,8 @@ type TreeDataItem = {
2022
name: string;
2123
value: number;
2224
items: TreeDataItem[];
23-
isParentElement?: boolean;
24-
}
25+
isParentElement?: boolean;
26+
}
2527

2628
export const HeatmapView = () => {
2729
const fetchData = React.useCallback(async () => {
@@ -65,7 +67,7 @@ export const HeatmapView = () => {
6567
return `<span title=${title}>${props.text}<br/>${props.dataItem.change}%</span>`;
6668
}
6769

68-
$("#heatmap").kendoTreeMap({
70+
window.$("#heatmap").kendoTreeMap({
6971
template: renderItem,
7072
dataSource: new kendo.data.HierarchicalDataSource({
7173
transport: {

examples/kendo-react-finance-portfolio/src/components/Stock/stock.module.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
.list-item {
2+
color: black;
3+
&:hover {
4+
text-decoration: none;
5+
color: black;
6+
}
7+
8+
&.list-item-selected {
9+
font-weight: bold;
10+
position: relative;
11+
&::after {
12+
content: "";
13+
position: absolute;
14+
width: 100%;
15+
display: block;
16+
height: 0.25rem;
17+
background-color: #007bff;
18+
}
19+
}
20+
}
21+
22+
.ddl-list-item {
23+
svg path {
24+
fill: #007bff;
25+
}
26+
27+
&.k-selected {
28+
svg path {
29+
fill: white;
30+
}
31+
}
32+
}
133

234
.stock {
335
z-index: 1040;

examples/kendo-react-finance-portfolio/src/pages/VirtualizedPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class VirtualizedPage extends React.Component<any, any> {
202202
<GridColumn field="freight" filter="numeric" width="200px" />
203203
<GridColumn field="shippedDate" filter="date" format="{0:D}" width="300px" />
204204
<GridColumn field="employeeID" filter="numeric" width="200px" />
205-
<GridColumn locked field="orderID" filterable={false} title="ID" width="90px" />
205+
<GridColumn field="orderID" filterable={false} title="ID" width="90px" />
206206
</Grid>
207207
</ExcelExport>
208208
<GridPDFExport
@@ -218,7 +218,7 @@ export class VirtualizedPage extends React.Component<any, any> {
218218
<GridColumn field="freight" filter="numeric" width="200px" />
219219
<GridColumn field="shippedDate" filter="date" format="{0:D}" width="300px" />
220220
<GridColumn field="employeeID" filter="numeric" width="200px" />
221-
<GridColumn locked field="orderID" filterable={false} title="ID" width="90px" />
221+
<GridColumn field="orderID" filterable={false} title="ID" width="90px" />
222222
</Grid>}
223223
</GridPDFExport>
224224
</div>

examples/kendo-react-finance-portfolio/src/styles/_kendo.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
$kendo-colors: (
55
primary: #1c7cd5
66
),
7-
87
$kendo-h1-font-family: "Ubuntu",
98
$kendo-h1-font-size: 2.5rem,
109
$kendo-h1-font-weight: bold,
@@ -36,6 +35,7 @@
3635
$kendo-grid-padding-y: 0.4rem,
3736
$kendo-grid-alt-bg: transparent,
3837
$kendo-grid-header-bg: #eceeef,
38+
$kendo-grid-footer-bg: #eceeef,
3939
$kendo-grid-header-text: #55595c,
4040
$kendo-grid-header-border: transparent,
4141

@@ -45,6 +45,17 @@
4545
$kendo-popup-padding-y: 0,
4646
);
4747

48+
:root{
49+
--kendo-font-family: "Roboto", Helvetica, Arial, sans-serif;
50+
}
51+
4852
.k-splitbar {
4953
box-shadow: 5px 5px 5px rgba(0, 0, 0, .2);
50-
}
54+
}
55+
56+
.k-grid-header .k-table-thead {
57+
background-color: #eceeef;
58+
td {
59+
border-color: #eceeef;
60+
}
61+
}

0 commit comments

Comments
 (0)