-
Notifications
You must be signed in to change notification settings - Fork 27
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
Chapters and ToC: Internal scroll #469
Conversation
c134b2c
to
1fb86dd
Compare
It works great. Excellent improvement 👏 |
I saw this as well.
But I was unable to reproduce this one, though. |
@@ -84,8 +85,10 @@ pre { | |||
flex-direction: row !important; | |||
column-gap: var(--local--column-gap); | |||
|
|||
aside { | |||
/* Left sidebar: Chapter List */ |
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.
👍👍👍
Fixed the postcss nesting issues you detailed in WordPress/wporg-mu-plugins#554 so should be fixed now if you update mu-plugins |
Nice catch, I'll make this behaviour independent |
c0bb55e
to
e56a44d
Compare
I have now fixed this in WordPress/wporg-mu-plugins#554 and you should be able to retest. More details > ipad.scrolling.sidebars.mp4 |
The above looks great to me ⭐ |
2773920
to
c0251c4
Compare
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.
Like the other PR, this is working well 👍🏻
I did notice that on pages with short-content, there's no space under the chapter list. This screenshot is from the Common APIs page. Maybe sidebar-container
could get some bottom margin/padding?
Another great find, fixed in 40f8977 Thanks for the solid review! |
Closes #453
Depends on WordPress/wporg-mu-plugins#554, which makes the sidebar container scroll internally once it becomes fixed.
Wraps the Chapters List in a sidebar container so that it behaves the same as the ToC, but without the 'Back to top' link.
On the Code Reference the comment form rules have been moved under the form so that they no longer clash with the ToC. It now only has to reduce in height when the footer becomes visible, see discussion.
The scrolling areas have custom scrollbars so that they appear on hover. This has been inspired by the React docs (example), and should help users discover that these are scrollable more easily. With the typical Mac OS setting of hidden scrollbars, it is not immediately obvious. Note that this does not work in Firefox.
Screenshots
Code reference
Code.ref.new.toc.mp4
Block Editor
Block.editor.new.toc.and.chapters.mp4
Testing