Skip to content

Commit 45927a5

Browse files
committed
Swap custom raindrop SVG for Material water_drop icon
Custom RaindropIcon had a chunky stroke and sharp path that clashed with the rounded outlined Material icons used elsewhere. Replace with the outlined water_drop icon for consistent weight and style.
1 parent 78634ea commit 45927a5

3 files changed

Lines changed: 2 additions & 25 deletions

File tree

‎frontend/src/components/FmiWeatherBox.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import Box from "./Box";
2020
import Icon from "./Icon";
2121
import LocationForm from "./LocationForm";
2222
import OfflineState from "./OfflineState";
23-
import RaindropIcon from "./RaindropIcon";
2423
import WeatherChart from "./WeatherChart";
2524

2625
type WeatherIconProps = {
@@ -257,7 +256,7 @@ const WeatherBox: React.FC<WeatherBoxProps> = ({ className }) => {
257256
{today.precipitationType === "snow" ? (
258257
<Icon>ac_unit</Icon>
259258
) : (
260-
<RaindropIcon />
259+
<Icon>water_drop</Icon>
261260
)}
262261
<span css={{ marginLeft: 10 }}>
263262
{today.precipitation.toFixed(1)} mm

‎frontend/src/components/RaindropIcon.tsx‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎frontend/src/components/TomorrowWeatherBox.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { getTemperatureSegments } from "../weather/tomorrow/utils";
1212
import Arrow from "./Arrow";
1313
import Box from "./Box";
1414
import Icon from "./Icon";
15-
import RaindropIcon from "./RaindropIcon";
1615
import Tooltip from "./Tooltip";
1716
import WeatherChart from "./WeatherChart";
1817

@@ -197,7 +196,7 @@ const TomorrowWeatherBox: React.FC<TomorrowWeatherBoxProps> = ({
197196
}}
198197
>
199198
{today.values.rainAccumulation > 0 ? (
200-
<RaindropIcon />
199+
<Icon>water_drop</Icon>
201200
) : (
202201
<Icon>ac_unit</Icon>
203202
)}

0 commit comments

Comments
 (0)