Skip to content

Commit 61854c1

Browse files
authored
Merge pull request #2568 from SpareBank1/_ffe-donut-oppdatering-cleanup
fix(ffe-chart-donut-react): Remove unused files
2 parents 33ae0d0 + 4c5a247 commit 61854c1

File tree

3 files changed

+73
-89
lines changed

3 files changed

+73
-89
lines changed

packages/ffe-chart-donut-react/less/chart-donut.less

-73
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,73 @@
1-
@import 'theme';
2-
@import 'chart-donut';
1+
.ffe-chart-donut {
2+
display: grid;
3+
width: fit-content;
4+
grid-template-columns: auto;
5+
grid-template-rows: auto;
6+
place-items: center;
7+
position: relative;
8+
text-align: left;
9+
10+
&--first {
11+
stroke: var(--ffe-color-default-brand-primary-subtle);
12+
}
13+
14+
&--last {
15+
stroke: var(--ffe-color-foreground-emphasis);
16+
}
17+
18+
&__circle,
19+
&__description {
20+
grid-column: 1 e('/') 1;
21+
grid-row: 1 e('/') 1;
22+
}
23+
24+
&__circle {
25+
width: 12.5rem;
26+
aspect-ratio: 1;
27+
}
28+
29+
&__description {
30+
z-index: 1;
31+
}
32+
33+
&__name {
34+
color: var(--ffe-color-foreground-emphasis);
35+
text-align: center;
36+
}
37+
38+
&__fractions {
39+
display: grid;
40+
grid-template-columns: auto 1px auto;
41+
grid-template-rows: auto auto;
42+
grid-column-gap: var(--ffe-spacing-xs);
43+
44+
&::after {
45+
grid-column: 2 e('/') 3;
46+
grid-row: 1 e('/') 2;
47+
display: flex;
48+
// Using subtle border color for the separator
49+
background: var(--ffe-color-border-primary-subtle);
50+
height: 1lh;
51+
content: '';
52+
}
53+
}
54+
55+
&__fraction {
56+
display: grid;
57+
place-items: center;
58+
}
59+
60+
.ffe-chart-donut__amount {
61+
color: var(--ffe-color-foreground-default);
62+
}
63+
64+
&__fraction:first-of-type {
65+
grid-column: 1 e('/') 2;
66+
grid-row: 1 e('/') 3;
67+
}
68+
69+
&__fraction:last-of-type {
70+
grid-column: 3 e('/') 4;
71+
grid-row: 1 e('/') 3;
72+
}
73+
}

packages/ffe-chart-donut-react/less/theme.less

-14
This file was deleted.

0 commit comments

Comments
 (0)