Skip to content

Commit

Permalink
[docs] Fix a11y issues in tables demos (mui#38829)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored and mnajdova committed Sep 8, 2023
1 parent 508bcab commit 2474c09
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function TableCustomized() {

{emptyRows > 0 && (
<tr style={{ height: 34 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function TableCustomized() {
<td
className="border border-solid border-slate-200 dark:border-slate-800 text-left p-1.5"
colSpan={3}
aria-hidden
/>
</tr>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function TableCustomized() {
<td
className="border border-solid border-slate-200 dark:border-slate-800 text-left p-1.5"
colSpan={3}
aria-hidden
/>
</tr>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function TableUnstyled() {
))}
{emptyRows > 0 && (
<tr style={{ height: 41 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function TableUnstyled() {
))}
{emptyRows > 0 && (
<tr style={{ height: 41 * emptyRows }}>
<td colSpan={3} />
<td colSpan={3} aria-hidden />
</tr>
)}
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/table/TableSortAndSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default function TableSortAndSelection() {
'--TableRow-hoverBackground': 'transparent',
}}
>
<td colSpan={6} />
<td colSpan={6} aria-hidden />
</tr>
)}
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/table/TableSortAndSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export default function TableSortAndSelection() {
} as React.CSSProperties
}
>
<td colSpan={6} />
<td colSpan={6} aria-hidden />
</tr>
)}
</tbody>
Expand Down

0 comments on commit 2474c09

Please sign in to comment.