diff --git a/site/.oxlintrc.jsonc b/site/.oxlintrc.jsonc index 160c1a45593..96100e35e95 100644 --- a/site/.oxlintrc.jsonc +++ b/site/.oxlintrc.jsonc @@ -33,6 +33,7 @@ "media-has-caption": "error", "click-events-have-key-events": "error", "no-noninteractive-tabindex": "error", + "iframe-has-title": "error", // --- complexity --- "no-regex-spaces": "error", @@ -226,7 +227,6 @@ // ========================================================== "no-autofocus": "off", // a11y/noAutofocus (large) "interactive-supports-focus": "off", // a11y/useFocusableInteractive (small) - "iframe-has-title": "off", // a11y/useIframeTitle (small) // Correctness category rules with existing violations. "require-mock-type-parameters": "off", // (xl) diff --git a/site/biome.jsonc b/site/biome.jsonc index 1afdd26c8be..152deec3e1c 100644 --- a/site/biome.jsonc +++ b/site/biome.jsonc @@ -3,5 +3,12 @@ "files": { "includes": ["!e2e/**/*Generated.ts", "!scripts/*.mjs", "!src/vendor"] }, + "linter": { + "rules": { + "a11y": { + "useIframeTitle": "off" // oxlint owns iframe-has-title + } + } + }, "$schema": "./node_modules/@biomejs/biome/configuration_schema.json" } diff --git a/site/src/modules/apps/WorkspaceAppFrame.tsx b/site/src/modules/apps/WorkspaceAppFrame.tsx index d14e2b8bf6f..2d70aeeac0f 100644 --- a/site/src/modules/apps/WorkspaceAppFrame.tsx +++ b/site/src/modules/apps/WorkspaceAppFrame.tsx @@ -151,16 +151,20 @@ export const WorkspaceAppFrame: React.FC = ({ ); }; -type WorkspaceIframeProps = React.ComponentProps<"iframe">; +type WorkspaceIframeProps = React.ComponentProps<"iframe"> & { + title: string; +}; export const WorkspaceIframe: React.FC = ({ className, ref, + title, ...props }) => { return (