Skip to content

Commit

Permalink
style(PropsTable): 🍱 Fix PropsTable content not visible in DarkMode (#1)
Browse files Browse the repository at this point in the history
style(PropsTable): 🍱  Fix PropsTable content not visible in DarkMode
  • Loading branch information
kodiakhq[bot] authored Jul 18, 2022
2 parents 897b3c7 + daf2422 commit d3a3b84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/PropsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const PropsTable: React.FC<PropsTableProps> = ({
const hasAriaLabel = !!(ariaLabel || ariaLabelledBy);

const tdStyles = "border-0 border-b-0 border-gray-500";
const thStyles = `px-2 py-2 text-gray-900 ${tdStyles}`;
const thStyles = `px-2 py-2 text-gray-900 dark:text-gray-200 ${tdStyles}`;
const typeStyles = "px-2 py-1";

return (
Expand Down Expand Up @@ -103,7 +103,7 @@ export const PropsTable: React.FC<PropsTableProps> = ({
{description && <CustomTooltip content={description} />}
</Box>
<Box as="td" className={tdStyles}>
<code className="mr-2 text-gray-900">
<code className="mr-2 text-gray-900 dark:text-gray-200">
{themeKey ? "union" : Boolean(typeSimple) ? typeSimple : type}
</code>
{!!(typeSimple || themeKey) && (
Expand All @@ -120,7 +120,9 @@ export const PropsTable: React.FC<PropsTableProps> = ({
</Box>
<Box as="td" className={tdStyles}>
{!!defaultValue ? (
<code className="text-gray-900">{defaultValue}</code>
<code className="text-gray-900 dark:text-gray-200">
{defaultValue}
</code>
) : (
"-"
)}
Expand Down

1 comment on commit d3a3b84

@vercel
Copy link

@vercel vercel bot commented on d3a3b84 Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.