We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d0763 commit cf8a1c0Copy full SHA for cf8a1c0
src/pages/index.tsx
@@ -418,7 +418,12 @@ const HomePage = ({
418
{codeExamples.map(({ title, description }, idx) => (
419
<button
420
key={title}
421
- className="flex flex-col gap-y-0.5 border-t px-6 py-4 hover:bg-background-highlight max-md:hidden"
+ className={cn(
422
+ "flex flex-col gap-y-0.5 border-t px-6 py-4 hover:bg-background-highlight max-md:hidden",
423
+ isModalOpen &&
424
+ idx === activeCode &&
425
+ "bg-background-highlight"
426
+ )}
427
onClick={() => toggleCodeExample(idx)}
428
>
429
<p className="font-bold">{title}</p>
0 commit comments