Skip to content

Commit 69898a1

Browse files
committed
fix: Remove duplicate color names #2350
1 parent 6749f40 commit 69898a1

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

src/data/countries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const COUNTRY_BASELINE_POLICIES = {
4242
};
4343

4444
export const STATUS_COLORS = {
45-
OK: colors.BLUE_95,
45+
OK: colors.BLUE_LIGHT,
4646
ERROR: colors.DARK_RED,
4747
Pending: colors.LIGHT_GRAY,
4848
};

src/layout/Section.jsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export default function Section({
2424
}[displayCategory];
2525
let titleColor = null;
2626
if (
27-
[style.colors.BLUE, style.colors.BLUE_PRESSED].includes(
28-
backgroundColor,
29-
)
27+
[style.colors.BLUE, style.colors.BLUE_PRESSED].includes(backgroundColor)
3028
) {
3129
titleColor = style.colors.WHITE;
3230
}
@@ -87,9 +85,7 @@ export function SectionTop({ height, backgroundColor, title }) {
8785
}[displayCategory];
8886
let titleColor = null;
8987
if (
90-
[style.colors.BLUE, style.colors.BLUE_PRESSED].includes(
91-
backgroundColor,
92-
)
88+
[style.colors.BLUE, style.colors.BLUE_PRESSED].includes(backgroundColor)
9389
) {
9490
titleColor = style.colors.WHITE;
9591
}
@@ -135,9 +131,7 @@ export function SectionBottom({ height, backgroundColor, children }) {
135131
}[displayCategory];
136132
let titleColor = null;
137133
if (
138-
[style.colors.BLUE, style.colors.BLUE_PRESSED].includes(
139-
backgroundColor,
140-
)
134+
[style.colors.BLUE, style.colors.BLUE_PRESSED].includes(backgroundColor)
141135
) {
142136
titleColor = style.colors.WHITE;
143137
}

src/pages/Donate.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ export default function Donate() {
6767
</Section>
6868

6969
{/* Donate Online Section */}
70-
<Section
71-
backgroundColor={style.colors.BLUE}
72-
title="How to Donate"
73-
>
70+
<Section backgroundColor={style.colors.BLUE} title="How to Donate">
7471
<div
7572
style={{
7673
display: "flex",

src/pages/policy/output/decile/IntraDecileImpact.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function ImpactPlot(props) {
2525

2626
const colorMap = {
2727
"Gain more than 5%": style.colors.BLUE,
28-
"Gain less than 5%": style.colors.BLUE_95,
28+
"Gain less than 5%": style.colors.BLUE_LIGHT,
2929
"No change": style.colors.LIGHT_GRAY,
3030
"Lose less than 5%": style.colors.MEDIUM_LIGHT_GRAY,
3131
"Lose more than 5%": style.colors.DARK_GRAY,

src/style/colors.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const BLACK = "#000000";
2-
const BLUE_95 = "#D8E6F3";
32
const BLUE_98 = "#F7FAFD";
43
const BLUE = "#2C6496";
54
const BLUE_LIGHT = "#D8E6F3";
@@ -20,7 +19,6 @@ const WHITE = "#FFFFFF";
2019

2120
const colors = {
2221
BLACK,
23-
BLUE_95,
2422
BLUE_98,
2523
BLUE,
2624
BLUE_LIGHT,

0 commit comments

Comments
 (0)