Skip to content

Commit

Permalink
docs: improve text contrast for hover and focus examples in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
87xie committed Dec 25, 2024
1 parent 6f9b4c1 commit 59d5d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/web/demos/focus/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export function CodeContainer({ code }: { code: HighlightedCode }) {
}}
handlers={[focus]}
/>
<div className="p-2 mt-auto font-light text-center">
<div className="p-2 mt-auto font-light text-center text-white">
You can also change the focus annotations on a rendered codeblock:
</div>
<div className="flex justify-center gap-2 pb-4">
<div className="flex justify-center gap-2 pb-4 text-white">
<button
onClick={() => setFocused("lorem")}
disabled={focused === "lorem"}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/demos/hover/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Page() {

function HoverContainer(props: { children: React.ReactNode }) {
return (
<div className="bg-zinc-900/80 px-2 rounded hover-container">
<div className="bg-zinc-900/80 px-2 rounded hover-container text-white">
{props.children}
</div>
)
Expand Down

0 comments on commit 59d5d02

Please sign in to comment.