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

Highlighting the current chapter in the interactive tutorial chapter selection dropdown #14331

Closed
slightlybelowzen opened this issue Nov 16, 2024 · 2 comments

Comments

@slightlybelowzen
Copy link

slightlybelowzen commented Nov 16, 2024

Describe the problem

I sometimes find myself going back and forth between chapters in the tutorial and it can be difficult to find which chapter (option) I am on currently. It would be nice to have the currently active chapter highlighted the select options somehow.

Describe the proposed solution

I don't think it would just be a case of adding a state variable to keep track of the id of the currently active lesson and apply a conditional style to that option to that id from the dropdown? I haven't looked at the code for the docs but I'm happy to go back to it and try and implementing it myself!

Importance

nice to have

@slightlybelowzen slightlybelowzen changed the title Showing the current chapter in the interactive tutorial Showing the current chapter in the interactive tutorial chapter selection dropdown Nov 16, 2024
@slightlybelowzen slightlybelowzen changed the title Showing the current chapter in the interactive tutorial chapter selection dropdown Highlighting the current chapter in the interactive tutorial chapter selection dropdown Nov 16, 2024
@WarningImHack3r
Copy link

Looks like this should be opened in https://github.com/sveltejs/svelte.dev/issues instead

@slightlybelowzen
Copy link
Author

My bad, will move it there!

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

No branches or pull requests

2 participants