Skip to content

Commit 6087980

Browse files
frozenheliumsamshara
authored andcommitted
Fix info icon being stretched in the table
1 parent 6a4ba53 commit 6087980

File tree

6 files changed

+14
-1
lines changed

6 files changed

+14
-1
lines changed

src/components/Table/HeaderCell/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function HeaderCell(props: HeaderCellProps) {
102102
</div>
103103
{infoTitle && infoDescription && (
104104
<InfoPopup
105+
className={styles.infoPopupIcon}
105106
title={infoTitle}
106107
description={infoDescription}
107108
/>

src/components/Table/HeaderCell/styles.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
}
1111

1212
.icon {
13+
flex-shrink: 0;
1314
font-size: var(--go-ui-height-icon-multiplier);
1415
}
16+
17+
.info-popup-icon {
18+
flex-shrink: 0;
19+
}
1520
}

src/views/CountryRiskWatch/RiskBarChart/FoodInsecurityChart/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ function FoodInsecurityChart(props: Props) {
291291

292292
return (
293293
<circle
294+
key={point.key}
294295
className={styles.averagePoint}
295296
cx={point.x}
296297
cy={point.y}
@@ -332,6 +333,7 @@ function FoodInsecurityChart(props: Props) {
332333

333334
return (
334335
<circle
336+
key={point.x}
335337
className={styles.averagePoint}
336338
cx={point.x}
337339
cy={point.y}

src/views/CountryRiskWatch/RiskBarChart/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
flex-wrap: wrap;
66
gap: var(--go-ui-spacing-md);
77
grid-column: span 2;
8+
9+
@media screen and (max-width: 40rem) {
10+
grid-column: unset;
11+
}
812
}
913

1014
.legend {

src/views/CountryRiskWatch/RiskTable/i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"riskScoreVeryLowLabel": "Very low",
99
"riskScoreNotApplicableLabel": "N/A",
1010
"riskTableHazardTypeTitle": "Hazard Type",
11-
"riskTableInformTitle": "INFORM Risk Score",
11+
"riskTableInformTitle": "Risk Score",
1212
"riskTableInformDescriptionP1": "These figures depict INFORM seasonal hazard exposure values for each country for each month on a five-point scale:",
1313
"riskTableInformDescriptionP2": "1: Very Low | 2: Low | 3: Medium | 4: High | 5: Very High.",
1414
"riskTableInformDescriptionP3": "More information on these values can be found {moreInfoLink}",

src/views/CountryRiskWatch/RiskTable/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ function RiskTable(props: Props) {
176176
),
177177
{
178178
headerInfoTitle: strings.riskTableInformTitle,
179+
// FIXME: add description for wildfire
179180
headerInfoDescription: (
180181
<div className={styles.informDescription}>
181182
<div>

0 commit comments

Comments
 (0)