Skip to content

Commit ced5e57

Browse files
committed
Make default vertical alignment for PieChart legend to be center
- Fix key figure width in the country 3W
1 parent c44b9fd commit ced5e57

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

src/components/PieChart/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
display: flex;
33
flex-wrap: wrap;
44
gap: var(--go-ui-spacing-md);
5+
align-items: center;
56

67
.legend {
78
display: flex;

src/views/CountryThreeWNationalSocietyProjects/styles.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323

2424
.separator {
2525
flex-shrink: 0;
26-
background-color: var(--go-ui-color-separator);
27-
width: var(--go-ui-width-separator-sm);
26+
border-left: var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);
2827
}
2928

3029
.pie-chart-container {

src/views/CountryThreeWProjects/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ export function Component() {
385385
<Container
386386
heading={strings.programmeType}
387387
headingLevel={5}
388+
className={styles.pieChartContainer}
388389
>
389390
<PieChart
390391
className={styles.pieChart}
@@ -412,6 +413,7 @@ export function Component() {
412413
<Container
413414
heading={strings.projectStatus}
414415
headingLevel={5}
416+
className={styles.pieChartContainer}
415417
>
416418
<PieChart
417419
className={styles.pieChart}

src/views/CountryThreeWProjects/styles.module.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@
2323

2424
.separator {
2525
flex-shrink: 0;
26-
background-color: var(--go-ui-color-separator);
27-
width: var(--go-ui-width-separator-sm);
26+
border-left: var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);
2827
}
2928

30-
.pie-chart {
29+
.pie-chart-container {
3130
flex-basis: 0;
3231
flex-grow: 1;
33-
flex-wrap: wrap;
34-
justify-content: center;
32+
33+
.pie-chart {
34+
flex-wrap: wrap;
35+
justify-content: center;
36+
}
3537
}
3638

3739
.key-figure {

0 commit comments

Comments
 (0)