Skip to content

Commit

Permalink
Merge branch 'main' into codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy authored Jul 19, 2022
2 parents 0e3660e + 8abc9b6 commit 9baf8e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@adaptui/react-tailwind": "0.1.0-alpha.4",
"@chakra-ui/hooks": "2.0.4",
"@reach/skip-nav": "0.17.0",
"ariakit": "2.0.0-next.34",
"ariakit": "2.0.0-next.35",
"lodash": "4.17.21",
"next": "12.2.2",
"nextra": "2.0.0-alpha.56",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3540,10 +3540,10 @@ [email protected]:
"@floating-ui/dom" "0.5.4"
ariakit-utils "0.17.0-next.22"

[email protected].34:
version "2.0.0-next.34"
resolved "https://registry.yarnpkg.com/ariakit/-/ariakit-2.0.0-next.34.tgz#2e2073abfb9b3ec8c6292d0b438acd7e0ddce0d1"
integrity sha512-jZ/S6q+eNGd2561PhYBxqj7j1tzMm2gbA3FAJuvZ24xiKxIj9/n2dszgMnhyFxVnHJQ3oAn1DesHZwkNAAbl+Q==
[email protected].35:
version "2.0.0-next.35"
resolved "https://registry.yarnpkg.com/ariakit/-/ariakit-2.0.0-next.35.tgz#5fea97d4a260b6c43bc653968d731412c9b74fce"
integrity sha512-Ec5LMAp8qUxo5eZvI1zj4nQ3hQiUWr6C38SEJbIF+UMSsKqsi/sGctjvu/kTBDuSOSnO0jVO55T48qyd0WhwZQ==
dependencies:
"@floating-ui/dom" "0.5.4"
ariakit-utils "0.17.0-next.23"
Expand Down

0 comments on commit 9baf8e5

Please sign in to comment.