Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: adopt table accessibility role rule (#10776)

Shahmir Varqha219125d0dcda
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json
index 800be8e03b..ec9a9074f8 100644
--- a/frontend/.oxlintrc.json
+++ b/frontend/.oxlintrc.json
@@ -57,7 +57,6 @@
// Adopt these incrementally
"no-underscore-dangle": "off",
"jsx-a11y/control-has-associated-label": "off",
- "jsx-a11y/no-interactive-element-to-noninteractive-role": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/exhaustive-effect-dependencies": "off",
"react/forbid-component-props": "off",
diff --git a/frontend/src/components/data-table/renderers.tsx b/frontend/src/components/data-table/renderers.tsx
index 247b311d1f..00aee1849d 100644
--- a/frontend/src/components/data-table/renderers.tsx
+++ b/frontend/src/components/data-table/renderers.tsx
@@ -71,11 +71,7 @@ export function renderTableHeader<TData>(
{renderHeaderGroup(table.getCenterHeaderGroups())}
{renderHeaderGroup(table.getRightHeaderGroups())}
{table.getAllColumns().length <= AUTO_WIDTH_MAX_COLUMNS && (
- <th
- className="w-full border-0"
- aria-hidden="true"
- role="presentation"
- />
+ <th className="w-full border-0" aria-hidden="true" />
)}
</TableRow>
</TableHeader>
@@ -217,7 +213,7 @@ export const DataTableBody = <TData,>({
{renderCells(row.getCenterVisibleCells())}
{renderCells(row.getRightVisibleCells())}
{columns.length <= AUTO_WIDTH_MAX_COLUMNS && (
- <td className="border-0" aria-hidden="true" role="presentation" />
+ <td className="border-0" aria-hidden="true" />
)}
</TableRow>
);