Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix highlighting for items not included in custom ToC #532

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

yileifeng
Copy link
Member

@yileifeng yileifeng commented Jan 9, 2025

Related Item(s)

#520

Changes

  • [FIX] show last slide highlighting for slides excluded from table of contents
  • [FIX] adjust "tableOfContents" for test product config to align with updated slides

Testing

Removed some slides from configuration, verify when navigating to these slides the table of contents still highlights the last section prior to the slide.


This change is Reviewable

Copy link

github-actions bot commented Jan 9, 2025

@spencerwahl
Copy link
Member

Should the parent ToC item stay highlighted when viewing a subitem? Right now unless you open the list that contains the subitem it looks like there is no highlight happening.

@yileifeng
Copy link
Member Author

Not sure about this one, since in this case the subitem will be highlighted so this is mostly expected behavior to me. Do you mean we should keep the parent item highlighted at all times when we are viewing any of its subitem slides? In that case, both the sublist item and the parent item will be highlighted when having the dropdown open and viewing a subitem slide but this could work.

@spencerwahl
Copy link
Member

Do you mean we should keep the parent item highlighted at all times when we are viewing any of its subitem slides?

Yeah, it allows the user to always know where they are in the ToC. I think it will also make sense to users if they see the parent and a subitem highlighted, they are at the subitem within that parent.

@yileifeng yileifeng force-pushed the custom-toc-highlight branch from 195315d to 4ac8094 Compare January 9, 2025 20:58
Copy link
Member Author

@yileifeng yileifeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, made this change now thanks 👍

Reviewable status: 0 of 5 files reviewed, all discussions resolved

Copy link
Member

@RyanCoulsonCA RyanCoulsonCA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @yileifeng)

Copy link
Member

@spencerwahl spencerwahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @yileifeng)

@spencerwahl spencerwahl merged commit d1d3510 into ramp4-pcar4:main Jan 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants