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

refactor toc, fix toc's styles on rtl, use ref.current instead document.getElementsByClassName #717

Merged
merged 7 commits into from
Aug 27, 2022

Conversation

dimaMachina
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Aug 19, 2022

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

Name Status Preview Updated
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview Aug 23, 2022 at 9:50PM (UTC)
nextra-v2 ✅ Ready (Inspect) Visit Preview Aug 23, 2022 at 9:50PM (UTC)
1 Ignored Deployment
Name Status Preview Updated
nextra ⬜️ Ignored (Inspect) Aug 23, 2022 at 9:50PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Aug 19, 2022

🦋 Changeset detected

Latest commit: 8c376dc

The changes in this PR will be included in the next version bump.

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

Comment on lines 102 to 112
<p className="mb-4 font-semibold tracking-tight">On This Page</p>
<ul>
<p className="mb-4 font-semibold tracking-tight">On This Page</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

p should not be direct child of ul

setActiveAnchor = useSetActiveAnchor()
setActiveAnchor ??= useSetActiveAnchor()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

set only 1 time

Comment on lines -45 to -52
@media (prefers-contrast: more) {
.nextra-nav-container-blur {
box-shadow: 0 0 0 1px black;
.dark & {
box-shadow: 0 0 0 1px white;
}
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved in line 294

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