You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current section is not always highlighted in the table of contents.
Inside #toc, the current li element is not always assigned the .current class. I've noticed this when writing userCSS styles that use the default preprocessor.
During testing, I also noticed that multiple li elements inside #toc will be assigned data-focused-via-click="", which may be indicative of the same, or another, bug.
System Information
OS: Linux
Browser: Firefox 102
Stylus Version: v1.5.25
The text was updated successfully, but these errors were encountered:
Yes, usercss styles don't have such highlight at all because I thought the implementation would be too slow. I'll look into it again and try to find a faster method, probably less reliable.
tophf
changed the title
[Bug] Current section not always highlighted in table of contents
Current section should be highlighted in ToC of usercss styles
Jun 29, 2022
Yes, usercss styles don't have such highlight at all because I thought the implementation would be too slow. I'll look into it again and try to find a faster method, probably less reliable.
Thanks. I hope you are able to find a good solution.
There's no problem with the data attribute.
Thanks for checking on that. What function does it serve to have multiple li elements within #toc assigned the data-focused-via-click attribute? I ask because, although it may take some tweaking, that attribute could possibly help with the goal of highlighting the current section. Or not. ;)
Bug Report
Bug Description
The current section is not always highlighted in the table of contents.
Inside
#toc
, the currentli
element is not always assigned the.current
class. I've noticed this when writing userCSS styles that use thedefault
preprocessor.During testing, I also noticed that multiple
li
elements inside#toc
will be assigneddata-focused-via-click=""
, which may be indicative of the same, or another, bug.System Information
The text was updated successfully, but these errors were encountered: