From 6ebaa3fd6c558e87914f4c2379e85e1430a4fcdd Mon Sep 17 00:00:00 2001 From: mgiannopoulos24 <79588074+mgiannopoulos24@users.noreply.github.com> Date: Sun, 28 Dec 2025 02:01:05 +0200 Subject: [PATCH] Fixed tab focus issue --- demos/4006-tab-focus-fix.html | 167 ++++++++++++++++++++++++++++++++++ demos/index.html | 1 + src/modules/a11y/a11y.mjs | 122 ++++++++++++++++++++++++- 3 files changed, 289 insertions(+), 1 deletion(-) create mode 100644 demos/4006-tab-focus-fix.html diff --git a/demos/4006-tab-focus-fix.html b/demos/4006-tab-focus-fix.html new file mode 100644 index 000000000..049296a96 --- /dev/null +++ b/demos/4006-tab-focus-fix.html @@ -0,0 +1,167 @@ + + + +
+ +Use the Tab key to navigate through the links in the slides. The slider should not break when a link gets focused.
+ + +Expected behavior: The slider should smoothly navigate to the slide containing the focused link without breaking the layout.
+Previous bug: When a link got focus, the browser would scroll the container, changing scrollLeft and breaking the slider display.
+