Skip to content

Commit

Permalink
updated number font size to match svg cell
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverabrahams committed Nov 29, 2024
1 parent 4444382 commit 4a16d05
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { css } from '@emotion/react';
import { textSans12 } from '@guardian/source/foundations';
import { useTheme } from '../context/Theme';
import type { AnagramHelperProgress } from '../utils/getAnagramHelperProgressForGroup';

Expand All @@ -14,6 +15,8 @@ export const SolutionDisplayCell = ({
<div
css={css`
box-sizing: border-box;
${textSans12};
font-size: ${theme.cellSize * 0.6}px;
background-color: ${!progressLetter.isSaved
? theme.unsavedBackground
: theme.foreground};
Expand Down Expand Up @@ -45,7 +48,8 @@ export const SolutionDisplayCell = ({
{progressLetter.number && (
<div
css={css`
font-size: ${theme.cellSize * 0.6}px;
${textSans12};
font-size: ${Math.max(9, Math.round(theme.cellSize * 0.2))}px;
position: absolute;
top: 0;
left: 0;
Expand Down

0 comments on commit 4a16d05

Please sign in to comment.