From 0f81ea8a5d8941e9fff4320c38a6c3adbb1ec90d Mon Sep 17 00:00:00 2001 From: Michael Kerscher Date: Fri, 7 Feb 2025 13:34:46 +0100 Subject: [PATCH] Fixes a speaker notes bug that did not allow going to the right in the speaker notes. The reason for that is that the "rel" attribute contained "prev" respective "next prefetch". Change this selector to use the ~= selector See: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#attrvalue_2 --- theme/speaker-notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/speaker-notes.js b/theme/speaker-notes.js index 6247ea3ffa28..b155b0a90d52 100644 --- a/theme/speaker-notes.js +++ b/theme/speaker-notes.js @@ -189,7 +189,7 @@ // Update prev/next buttons to keep speaker note state. document - .querySelectorAll('a[rel="prev"], a[rel="next"]') + .querySelectorAll('a[rel~="prev"], a[rel~="next"]') .forEach((elem) => { elem.href += "#speaker-notes-open"; });