From d427b21d8ed1e7ed51b23e5ae808fc0906a9ba2f Mon Sep 17 00:00:00 2001 From: Adam Argyle Date: Mon, 26 Feb 2024 12:44:28 -0800 Subject: [PATCH] improve keyboard support --- polyfill/polyfill.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polyfill/polyfill.js b/polyfill/polyfill.js index 6210605..efe282a 100644 --- a/polyfill/polyfill.js +++ b/polyfill/polyfill.js @@ -230,6 +230,9 @@ function columnWidth(elem) { class FragmentNode { constructor(node) { this.container = document.createElement('fragments-container'); + this.container.tabIndex = 0; + this.container.setAttribute('aria-label', 'Carousel scroll area'); + this.container.setAttribute('role', 'group'); this.node = node; this.fragments = {}; let child = null;