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

Add heading anchors #38

Merged
merged 3 commits into from
Jun 5, 2024
Merged

Add heading anchors #38

merged 3 commits into from
Jun 5, 2024

Conversation

lukebemish
Copy link
Contributor

@lukebemish lukebemish commented Jun 5, 2024

Makes it easy to get links to specific sections in a page by turning the headers into links -- a "link" icon shows up by them on hover, similar to GitHub markdown displays.


Preview URL: https://pr-38.neoforged-website-previews.pages.dev

@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) June 5, 2024 02:20 Active
@neoforged-pages-deployments
Copy link

neoforged-pages-deployments bot commented Jun 5, 2024

Deploying with Cloudflare Pages

Name Result
Last commit: 6a16e794b1dedc9f80cdb9a757b086f0b93640c2
Status: ✅ Deploy successful!
Preview URL: https://111e23ba.neoforged-website-previews.pages.dev
PR Preview URL: https://pr-38.neoforged-website-previews.pages.dev

@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) June 5, 2024 02:30 Active
Copy link
Member

@sciwhiz12 sciwhiz12 left a comment

Choose a reason for hiding this comment

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

Overall, the change is good. Better than having to extract the ID and build the URL manually...

I think perhaps the transition being applied to the anchor button (particularly after moving the mouse away from the header) is a bit... bad. Might I suggest adding the following style:

.anchor-wrapper * {
  transition: none;
}

@sciwhiz12 sciwhiz12 added the enhancement New feature or request label Jun 5, 2024
@lukebemish
Copy link
Contributor Author

Why is... whatever the heck that weird transition is even the default. Fixed.

@lukebemish lukebemish requested a review from sciwhiz12 June 5, 2024 03:37
@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) June 5, 2024 03:37 Active
@sciwhiz12 sciwhiz12 merged commit b26d79f into neoforged:main Jun 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants