-
Notifications
You must be signed in to change notification settings - Fork 29
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 anchor indicator #33
Comments
FYI, there's already a pattern for this on the handbooks, if you hover or focus over a heading you can see a link icon: |
Nice, thanks! |
Using `overflow: auto` as a clearfix prevented the `.toc-heading a` Dashicon from showing up on hover. This also replaces the various `padding-left` values with a single value that works across all breakpoints, to ensure that there's enough room for the icon. See WordPress/wporg-developer#33 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11901 74240141-8908-4e6f-9713-ba540dce6ec7
I made WordPress/wordpress.org@d90623f on the production theme, since it fixes a bug there. I'll backport it to this repo, and then add any experimental stuff. |
As mentioned on Slack on June 2, the fix caused other problems with the Table of Contents, which are still present. Today I noticed also that a heading with a link gets split into two |
Introduced in r11901 See https://wordpress.slack.com/archives/C02QB8GMM/p1654203529934789 See WordPress/wporg-developer#33 (comment) Props joyously, dd32 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11910 74240141-8908-4e6f-9713-ba540dce6ec7
See WordPress/wporg-developer#33 (comment) Props joyously git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11911 74240141-8908-4e6f-9713-ba540dce6ec7
Discussed in #26
Originally posted by iandunn May 28, 2022
Our pages already have anchors for deep-linking to sections, but it's helpful to show a visual indicator of that.
Example: https://api.slack.com/reference/surfaces/formatting#escaping
The text was updated successfully, but these errors were encountered: