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: replace whitespace with a - so that ids are valid and scroll-to works #4601

Closed
wants to merge 1 commit into from

Conversation

TomPridham
Copy link
Contributor

I couldn't find an existing issue. I noticed the scrollto behavior didn't work for keybind settings that included whitespace because they were generating invalid ids, e.g. id="categoryCommand Palette". It isn't a problem for the User settings because the display strings were decamelized object properties
before:
Screencast from 2024-11-27 13-30-48.webm
after:
Screencast from 2024-11-27 13-32-29.webm

Copy link

qa-wolf bot commented Nov 28, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Nov 28, 2024 5:19am

@franknoirot
Copy link
Collaborator

You're correct @TomPridham this hadn't been logged to an issue yet, thank you for this! I'll review today

Copy link
Collaborator

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

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

Clean little fix, appreciate it!

@franknoirot
Copy link
Collaborator

Since all of the test CI items will fail on PRs opened by outside contributors, I've had to recreate this PR as #4710. I'll close this and get that in. Sorry for the runaround Tom!

@franknoirot franknoirot closed this Dec 9, 2024
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.

2 participants