Skip to content

Commit

Permalink
fix table html markup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Feb 6, 2025
1 parent 6c87eef commit b9b4201
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
1 change: 0 additions & 1 deletion argos/tests/screenshot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function isBlacklisted(pathname: string) {
'/tests/pages/react-18',
// Flaky because of hydration error
'/tests/blog/archive',
'/tests/docs/tests/custom-props',
'/tests/pages/code-block-tests',
'/tests/pages/embeds',
// Flaky because of hydration error with docusaurus serve + .html
Expand Down
50 changes: 27 additions & 23 deletions website/_dogfooding/_docs tests/tests/sidebar-frontmatter/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,34 @@ export const DocPropsList = ({category}) => {
const items = [category, ...category.items];
return (
<table>
<tr>
<th>
<code>type</code>
</th>
<th>
<code>label</code>
</th>
<th>
<code>customProps</code>
</th>
<th>
<code>className</code>
</th>
</tr>
{items.map((item, index) => (
<tr key={index}>
<td>{item.type}</td>
<td>
<Link to={item.href}>{item.label}</Link>
</td>
<td>{JSON.stringify(item.customProps)}</td>
<td>{JSON.stringify(item.className)}</td>
<thead>
<tr>
<th>
<code>type</code>
</th>
<th>
<code>label</code>
</th>
<th>
<code>customProps</code>
</th>
<th>
<code>className</code>
</th>
</tr>
))}
</thead>
<tbody>
{items.map((item, index) => (
<tr key={index}>
<td>{item.type}</td>
<td>
<Link to={item.href}>{item.label}</Link>
</td>
<td>{JSON.stringify(item.customProps)}</td>
<td>{JSON.stringify(item.className)}</td>
</tr>
))}
</tbody>
</table>
);
};
Expand Down

0 comments on commit b9b4201

Please sign in to comment.