Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve text contrast for hover and focus examples in light mode #493

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: improve text contrast for hover and focus examples in light mode
  • Loading branch information
87xie committed Dec 25, 2024
commit 59d5d02d4542ca8c330bdcba46b696240db2b782
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
Loading