-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Update ToC highlighting styles to prevent UI shifts #1372
Conversation
🦋 Changeset detectedLatest commit: 0db5362 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice! This was on my to-do list this week — fun for someone else to do it instead 😁
Left a couple of notes, but the style change looks good to me 🙌
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Thanks for the review 🙌 Just applied both suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks great now.
Let’s hold before merging — maybe we can get a few more changes in a new minor. I’d love to review #1175 today and have a few other styling things that could pair well with this.
Although I won’t release the minor just yet, merging this early because I can see a sidebar style issue in #1383 and want to see if it is also present with this change and then fix it once, instead of fixing it for the old styling on that branch and then maybe having to fix again for these changes. Hoping to release v0.16 tomorrow anyway, so hopefully shouldn’t block any other patches between then and now. |
* main: (23 commits) i18n(ko-KR): add`plugins.mdx` (withastro#1401) [ci] format i18n(ko-KR): add `community-content.mdx` (withastro#1402) i18n(ko-KR): update `site-search.mdx` (withastro#1400) i18n(ko-KR): add `showcase.mdx` (withastro#1403) [docs] new Resources sidebar section and pages (withastro#1357) i18n(hi): add `i18n.mdx` (withastro#1388) [ci] format [ci] release (withastro#1384) Restore original tighter line-height on `<LinkCard>` titles (withastro#1386) Refactor virtual module system for layout components (withastro#1383) Update astro to 4.2.1 (withastro#1385) fix: tree generation for autogenerated groups (withastro#1151) Tweak vertical spacing in Markdown content styles (withastro#1376) Update ToC highlighting styles to prevent UI shifts (withastro#1372) i18n(hi): update `index.mdx` (withastro#1380) [ci] format [ci] release (withastro#1379) Update dependencies (withastro#1378) [ci] format ...
What kind of changes does this PR include?
Description
This PR applies the suggested changes from @doodlemarks to prevent UI shifts in the table of contents when scrolling through a page.
I applied this suggestion too which means that hovering the currently highlighted ToC item will change its color to the default link hover color whereas before hovering the currently highlighted ToC item would have no effect. Just wanted to mention this to make sure this is the intended behavior.