Skip to content

Commit 5d9080b

Browse files
committed
Treat all 2-digit numbers the same
For the scores, all other 2-digit numbers are created by combining single-digit numbers, so we should also do this for 10. Also updated the spacing between numbers so that a 10 created by combining single-digit numbers looks the same as the 10 SVG.
1 parent 3ca4424 commit 5d9080b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dotcom-rendering/src/components/FootballMatchHeader/FootballMatchHeader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const Score = (props: { score: number }) => (
295295
paddingLeft: 4,
296296
// For when there are two numbers.
297297
'& > :nth-of-type(2)': {
298-
marginLeft: -8,
298+
marginLeft: -10,
299299
},
300300
}}
301301
>
@@ -328,7 +328,6 @@ const ScoreNumber = (props: { score: number }) => {
328328
case 7:
329329
case 8:
330330
case 9:
331-
case 10:
332331
return <BigNumber index={props.score} />;
333332
default:
334333
return (

0 commit comments

Comments
 (0)