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 accessible label rule (#10782)

Shahmir Varqha952f422cf7d1
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json
index ec9a9074f8..3875cacdb9 100644
--- a/frontend/.oxlintrc.json
+++ b/frontend/.oxlintrc.json
@@ -56,7 +56,6 @@
// === Newly enabled in oxlint 1.79 ===
// Adopt these incrementally
"no-underscore-dangle": "off",
- "jsx-a11y/control-has-associated-label": "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 00aee1849d..395cd76f71 100644
--- a/frontend/src/components/data-table/renderers.tsx
+++ b/frontend/src/components/data-table/renderers.tsx
@@ -243,7 +243,7 @@ export const DataTableBody = <TData,>({
data-virtual-spacer=""
style={{ height: virtualItems[0].start }}
>
- <td colSpan={totalColSpan} />
+ <td aria-hidden="true" colSpan={totalColSpan} />
</tr>
)}
{virtualItems.map((vItem) => renderRow(rows[vItem.index]))}
@@ -254,7 +254,7 @@ export const DataTableBody = <TData,>({
height: totalSize - (virtualItems.at(-1)?.end ?? totalSize),
}}
>
- <td colSpan={totalColSpan} />
+ <td aria-hidden="true" colSpan={totalColSpan} />
</tr>
)}
</>
diff --git a/frontend/src/components/home/components.tsx b/frontend/src/components/home/components.tsx
index c8ed185254..7ad26d35a0 100644
--- a/frontend/src/components/home/components.tsx
+++ b/frontend/src/components/home/components.tsx
@@ -169,6 +169,7 @@ export const ResourceLinks: React.FC = () => {
key={resource.title}
href={resource.url}
target="_blank"
+ aria-label={`${resource.title}: ${resource.description}`}
className="flex items-start gap-3 py-3 px-3 rounded-lg border hover:bg-accent/20 transition-colors shadow-xs"
>
<resource.icon className="w-5 h-5 mt-1.5 text-primary" />
diff --git a/frontend/src/plugins/impl/MatrixPlugin.tsx b/frontend/src/plugins/impl/MatrixPlugin.tsx
index 331e726a1f..92358dc6f2 100644
--- a/frontend/src/plugins/impl/MatrixPlugin.tsx
+++ b/frontend/src/plugins/impl/MatrixPlugin.tsx
@@ -408,7 +408,7 @@ const MatrixComponent = ({
{hasColumnLabels && (
<thead>
<tr>
- {hasRowLabels && <th />}
+ {hasRowLabels && <th aria-hidden="true" />}
{columnLabels.map((lbl, j) => (
<th
key={j}