From 7db8805e6066b8276dbfe207a1ff67666fa8f7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gr=C3=BCter?= Date: Tue, 9 Sep 2025 23:25:31 +0200 Subject: [PATCH 1/2] Disable `scroll-behavior: smooth` to improve UX --- .../assets/styles/variables/_bootstrap.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss b/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss index eaf373b797..224da4e799 100644 --- a/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss +++ b/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss @@ -34,3 +34,9 @@ $focus-ring-offset: 0.125rem; // 2px at 100% zoom (0.125 * 16px base font = 2px) // outline creates the same style of focus ring, it just uses CSS outline instead of box shadow $focus-ring-outline: $focus-ring-color solid $focus-ring-width; $btn-focus-box-shadow: $focus-ring-box-shadow; + +// Speed up site navigation and reduce animation when using anchor links: +// Don't enable `scroll-behavior: smooth` globally, instead use +// `scroll-behavior: auto` which is also the behavior when +// `prefers-reduced-motion` is active. +$enable-smooth-scroll: false From 087d418a7d56591712321ef293f8ec5ebffb7d6c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 21:28:50 +0000 Subject: [PATCH 2/2] [pre-commit.ci] Automatic linting and formatting fixes --- src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss b/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss index 224da4e799..04a4266c8c 100644 --- a/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss +++ b/src/pydata_sphinx_theme/assets/styles/variables/_bootstrap.scss @@ -39,4 +39,4 @@ $btn-focus-box-shadow: $focus-ring-box-shadow; // Don't enable `scroll-behavior: smooth` globally, instead use // `scroll-behavior: auto` which is also the behavior when // `prefers-reduced-motion` is active. -$enable-smooth-scroll: false +$enable-smooth-scroll: false;