Skip to content

Commit d94e0c9

Browse files
fix: change fonts on gauge and single-stat to Proxima Nova
Previously, these fonts used Rubik, which doesn't exist in this repo anymore, which caused the fonts to fallback to the browser default, which appeared to be Times New Roman, or a generic serif font.
1 parent 939bdfa commit d94e0c9

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

giraffe/src/components/Gauge/Gauge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ const drawGaugeLabels = (
317317
const arcIncrement = arcLength / lineCount
318318

319319
// Format labels text
320-
ctx.font = `bold ${labelFontSize}px Rubik`
320+
ctx.font = `bold ${labelFontSize}px 'Proxima Nova', Helvetica, Arial, Tahoma, Verdana, sans-serif`
321321
ctx.fillStyle = labelColor
322322
ctx.textBaseline = 'middle'
323323
ctx.textAlign = 'right'
@@ -356,7 +356,7 @@ const drawGaugeValue = (
356356
const {gaugePosition, prefix, suffix, decimalPlaces} = props
357357
const {valueColor, valuePositionYOffset, valuePositionXOffset} = props.theme
358358

359-
ctx.font = `${labelValueFontSize}px Rubik`
359+
ctx.font = `${labelValueFontSize}px 'Proxima Nova', Helvetica, Arial, Tahoma, Verdana, sans-serif`
360360
ctx.fillStyle = valueColor
361361
ctx.textBaseline = 'middle'
362362
ctx.textAlign = 'center'

giraffe/src/components/Input/Input.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
border: 2px solid #383846;
1515
box-sizing: border-box;
1616
color: #bec2cc;
17-
font-family: 'Rubik', Helvetica, Arial, Tahoma, Verdana, sans-serif;
17+
font-family: 'Proxima Nova', Helvetica, Arial, Tahoma, Verdana, sans-serif;
1818
font-weight: 500;
1919
outline: none;
2020
position: relative;

giraffe/src/constants/singleStatStyles.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@ export const LASER = '#00C9FF'
55
export const SINGLE_STAT_DEFAULT_TEST_ID = 'giraffe-layer-single-stat'
66

77
export const SINGLE_STAT_DEFAULT_STYLE: CSS.Properties = {
8-
display: 'flex',
98
alignItems: 'center',
10-
justifyContent: 'center',
11-
overflow: 'hidden',
12-
width: '100%',
13-
height: '100%',
14-
padding: '8px',
9+
borderRadius: '4px',
10+
bottom: 0,
1511
color: LASER,
16-
userSelect: 'text',
17-
WebkitUserSelect: 'text',
12+
cursor: 'text',
13+
display: 'flex',
14+
fontFamily: '"Proxima Nova", Helvetica, Arial, Tahoma, Verdana, sans-serif',
15+
height: '100%',
16+
justifyContent: 'center',
17+
left: 0,
1818
MozUserSelect: 'text',
1919
msUserSelect: 'text',
20-
cursor: 'text',
20+
overflow: 'hidden',
21+
padding: '8px',
2122
position: 'absolute',
22-
top: 0,
23-
left: 0,
2423
right: 0,
25-
bottom: 0,
26-
borderRadius: '4px',
24+
top: 0,
25+
userSelect: 'text',
26+
WebkitUserSelect: 'text',
27+
width: '100%',
2728
}
2829

2930
export const SINGLE_STAT_RESIZER_DEFAULT_STYLE: CSS.Properties = {

0 commit comments

Comments
 (0)