From 82e6ea5a9ec211afcf10d61314c94d500d539ce1 Mon Sep 17 00:00:00 2001 From: Alexandre Asselin Date: Wed, 11 Dec 2024 16:33:07 -0500 Subject: [PATCH] fix accessibility issue --- .../app/ui/components/propTable/PropTableRender.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/docs/app/ui/components/propTable/PropTableRender.tsx b/apps/docs/app/ui/components/propTable/PropTableRender.tsx index ed72dff65..c98f0f3bf 100644 --- a/apps/docs/app/ui/components/propTable/PropTableRender.tsx +++ b/apps/docs/app/ui/components/propTable/PropTableRender.tsx @@ -43,10 +43,10 @@ const columns: ColumnDef[] = [ const { name, type, required } = info.getValue() as { name: ReactNode; type: ReactNode; required: boolean }; return ( -
+
{name}{!required && "?"}
{type}
-
+ ); } }, @@ -58,12 +58,12 @@ const columns: ColumnDef[] = [ const { description, defaultValue } = info.getValue() as { description: ReactNode; defaultValue: string }; return ( -
+
{description}
{defaultValue !== "" && (
Defaults to .
)} -
+ ); } } @@ -87,7 +87,7 @@ export const PropTableRender = ({ items }: { items: Item[] }) => { return (
-
+
{table.getRowModel().rows.map(row => (
{row.getVisibleCells().map(cell => { @@ -102,7 +102,7 @@ export const PropTableRender = ({ items }: { items: Item[] }) => { )}
))} -
+
); };