-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(Toc): render 6 levels of nested items #2010
base: next
Are you sure you want to change the base?
Conversation
Preview is ready. |
Visual Tests Report is ready. |
|
||
import './TocSections.scss'; | ||
|
||
const b = block('toc-sections'); |
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.
const b = block('toc-sections'); | |
const b = block('toc'); |
Let's keep it part of the toc
block
onClick={onUpdate} | ||
childItem={childItem} | ||
depth={depth} | ||
onItemClick={onItemClick} |
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 odd to have onItemClick
in TocItem
component. Shouldn't it be simply onClick
?
$block: '.#{variables.$ns}toc-sections'; | ||
|
||
#{$block} { |
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.
$block: '.#{variables.$ns}toc-sections'; | |
#{$block} { | |
$block: '.#{variables.$ns}toc'; | |
#{$block}__sections { |
No description provided.