Skip to content

Commit

Permalink
Merge pull request #43 from Vizzuality/widgets-color-changes
Browse files Browse the repository at this point in the history
Habitat widget bar chart tweaks
  • Loading branch information
agnlez authored Nov 8, 2023
2 parents 5cc94a7 + ed36185 commit df91c6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/charts/horizontal-bar-chart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const HorizontalBarChart: React.FC<HorizontalBarChartProps> = ({ className, data
style={{ backgroundColor: barColor || DEFAULT_BAR_COLOR, width: `${barFillPercentage}%` }}
></span>
<span
className="absolute top-0 bottom-0 border-r-2 border-orange"
className="absolute top-0 bottom-0 w-1 border-x border-white bg-orange"
style={{
width: `${targetPositionPercentage}%`,
left: `${targetPositionPercentage}%`,
}}
>
<span className="absolute right-0 top-5 whitespace-nowrap text-xs text-orange">
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/constants/habitat-chart-colors.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const HABITAT_CHART_COLORS = {
'warm-water corals': '#AD6CFF',
'cold-water corals': '#04D8F4',
mangroves: '#FD8E28',
seagrasses: '#02B07C',
mangroves: '#A1EB04',
seagrasses: '#02B048',
saltmarshes: '#717B00',
seamounts: '#9B5400',
seamounts: '#884B02',
};

0 comments on commit df91c6b

Please sign in to comment.