small fixes

This commit is contained in:
2026-03-01 19:48:29 -04:00
parent 364facd9f0
commit 1764adf0a5
15 changed files with 68 additions and 24 deletions

View File

@@ -117,7 +117,15 @@ export default function PracticePage() {
hover
className="cursor-pointer"
accent={topic.unitColor}
tabIndex={0}
role="button"
onClick={() => setSelectedTopic(topic)}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
setSelectedTopic(topic);
}
}}
>
<div className="flex items-center justify-between">
<span className="font-bold">{topic.label}</span>