Skip to content

Commit c25af96

Browse files
authored
Fixed cell styling when in pencil mode (#236)
1 parent 666cbfb commit c25af96

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/frontend/Sudoku.React/src/components/CellInput.module.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,22 @@
33
}
44

55
.cell {
6+
background-color: #FAEBD7;
67
position: relative;
78
}
89

10+
.highlight {
11+
background-color: #d8eef8 !important;
12+
}
13+
14+
.selected {
15+
background-color: #b8d8f0 !important;
16+
}
17+
18+
.invalid {
19+
background-color: #ffdddd !important;
20+
}
21+
922
.cell input,
1023
.cell label {
1124
align-items: center;

src/frontend/Sudoku.React/src/components/CellInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function CellInput({
5959
value={cell.hasValue && cell.value !== null ? cell.value.toString() : ''}
6060
onClick={handleClick}
6161
onChange={() => {}}
62-
style={cell.possibleValues.length > 0 && !cell.hasValue ? { opacity: 0 } : undefined}
62+
style={cell.possibleValues.length > 0 && !cell.hasValue ? { backgroundColor: 'transparent' } : undefined}
6363
/>
6464
</td>
6565
);

0 commit comments

Comments
 (0)