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
<497> Add anchors to main sections #613
Conversation
4813145
to
1411f79
Compare
@swift-ci please test |
I believe this is a duplicate of #517? |
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.
I am inclined to vote for doing this using Jekyll if possible.
1411f79
to
da22df8
Compare
@kaishin @alexandersandberg updated |
Great job getting this done with Jekyll 👍 That's a great solution. My only comment is with the styling. It might look better if it extended to the left of the title to the left of the bounding box rather than being on the right? Also, I wonder if we should draw a little "chain links" icon which might make it more obvious than the hash character what's happening? Also, whether we use an icon or a hash, we should give it a I can draw an icon if you would like to go this direction. I won't until we decide if we want to go that way, though! |
@daveverwer I added the I didn't move it to the left because I found that (in my research) that most of the anchors were placed on the left of the heading. |
@swift-ci please test |
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.
Looks great!
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.
The site isn't building due to an unescaped character.
@federicobucchi Beside the build issue above, the anchors are always visible on We can perhaps use CSS to size the SVG using type-related units ( |
d81b379
to
3d686a4
Compare
@swift-ci please test |
@kaishin yeah that was a problem, but for now we want only |
@swift-ci please test |
Not sure if I'm missing anything but I don't see any anchors anywhere when running locally. I'm on the latest commit. |
@alexandersandberg I just tested, it works for me:
|
Ok, so it worked if I first did It does not appear white in dark mode for me though. |
@alexandersandberg I have no idea of what you are experiencing unfortunately. I am running I have tried with |
It works for me in Firefox, but not Safari. |
I tried with Safari, Firefox and Chrome. All works for me. @kaishin when you have the chance can you please try too? If I get another approval, I will merge and we can try if @alexandersandberg experiences the same in prod (there is no risk since, at worst, @alexandersandberg wouldn't see the change) |
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 for addressing all the issues @federicobucchi! It is working fine on my side, in Safari and other browsers, in both light and dark modes.
Motivation:
#497
Modifications:
assets/stylesheets/_screen.scss
> added style to show#
onh2
hoverassets/javascripts/application.js
> addinganchors
for eachh2
withid
in the seen pageResult:
Only targeting
h2
withid
for now.