Skip to content

Commit

Permalink
MAke highmap use open sans font
Browse files Browse the repository at this point in the history
  • Loading branch information
omsaggau committed Feb 13, 2024
1 parent a10c75a commit 2da9a6a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/resources/site/parts/highmap/Highmap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ function Highmap(props) {
const mapOptions = {
chart: {
height: desktop && props.heightAspectRatio && `${props.heightAspectRatio}%`,
style: {
color: '#21383a',
fontSize: '14px',
fontWeight: 'normal',
fontFamily: '"Open Sans Regular", "Arial", "DejaVu Sans", sans-serif',
}
},
accessibility: {
enabled: true,
Expand Down Expand Up @@ -109,6 +115,9 @@ function Highmap(props) {
exporting: {
buttons: {
contextButton: {
symbol: 'menu',
symbolStroke: '#00824D', // ssb-green-4
text: props.phrases['highcharts.download'],
menuItems: [
'printChart',
'separator',
Expand Down Expand Up @@ -179,6 +188,7 @@ Highmap.propTypes = {
description: PropTypes.string,
mapFile: PropTypes.string,
tableData: PropTypes.array,
style: PropTypes.object,
thresholdValues: PropTypes.array,
hideTitle: PropTypes.boolean,
colorPalette: PropTypes.string,
Expand Down

0 comments on commit 2da9a6a

Please sign in to comment.