Skip to content

Commit

Permalink
improvement: updated map chart hover color
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoEscaleira committed Mar 20, 2024
1 parent ce83d39 commit e55eab2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pages/Game/MapChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const MapChart: FC = () => {
geography={geo}
data-tooltip-id="country-tooltip"
onClick={handleOnCountryClick}
className={`${isCountrySelected ? "fill-blue-400" : countryColor} cursor-pointer outline-none hover:fill-blue-300`}
className={`${isCountrySelected ? "fill-purple-300" : countryColor} cursor-pointer outline-none hover:fill-purple-200`}
/>
</Tooltip>
<Marker key={`name-${geo.rsmKey}`} coordinates={provinceCenter} onClick={handleOnCountryClick}>
Expand Down Expand Up @@ -147,6 +147,14 @@ export const MapChart: FC = () => {
</Typography>
</div>
</Tooltip>
<Tooltip content="Current selected country">
<div className="flex gap-2">
<span className="size-5 rounded-full bg-purple-300" />
<Typography variant="small" className="font-medium">
Selected
</Typography>
</div>
</Tooltip>
</div>
</div>
);
Expand Down

0 comments on commit e55eab2

Please sign in to comment.