diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/version-switcher.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/version-switcher.html index 5d07b9336..7f5ee9327 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/version-switcher.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/version-switcher.html @@ -1,14 +1,24 @@ -{# As the version switcher will only work when JavaScript is enabled, we add it through JavaScript. - #} +{%- set button_id = unique_html_id("pst-version-switcher-button") -%} +{%- set dropdown_id = unique_html_id("pst-version-switcher-list") -%} +{# As the version switcher will only work when JavaScript is enabled, we add it through JavaScript. #}