Skip to content

Commit

Permalink
reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverabrahams committed Jan 21, 2025
1 parent 51ce6e9 commit 9fa9be7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/@guardian/react-crossword/src/components/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ const getReadableLabelForCellAndEntry = ({
cell: CellType;
additionalEntry?: boolean;
}): string => {
const cellPosition = entry.direction === 'across'
? String(cell.x + 1 - entry.position.x)
: String(cell.y + 1 - entry.position.y);
return `${additionalEntry ? 'Also, letter' : 'Letter'} ${cellPosition} of ${entry.length}. ${entry.id}. ${formatClueForScreenReader(entry.clue)}`;

const cellPosition =
entry.direction === 'across'
? String(cell.x + 1 - entry.position.x)
: String(cell.y + 1 - entry.position.y);
return `${additionalEntry ? 'Also, letter' : 'Letter'} ${cellPosition} of ${entry.length}. ${entry.id}. ${formatClueForScreenReader(entry.clue)}`;
};

const getCellPosition = (
Expand Down

0 comments on commit 9fa9be7

Please sign in to comment.