diff --git a/src/env.d.ts b/src/env.d.ts index 3d36c0c6..a49df59d 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -5,3 +5,10 @@ declare module '*.astro' { const component: AstroComponentFactory; export default component; } + +declare namespace astroHTML.JSX { + interface HTMLAttributes { + /** @see https://open-ui.org/components/focusgroup.explainer/ */ + focusgroup?: string; + } +} diff --git a/src/practices/keyboard-interface/FocusgroupComparisonTable.astro b/src/practices/keyboard-interface/FocusgroupComparisonTable.astro new file mode 100644 index 00000000..b38699e1 --- /dev/null +++ b/src/practices/keyboard-interface/FocusgroupComparisonTable.astro @@ -0,0 +1,171 @@ +--- +/** + * Responsive comparison table: Roving tabindex vs aria-activedescendant vs focusgroup. + * + * - Desktop (md+): standard HTML table + * - Mobile (