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

feat(Toc): render 6 levels of nested items #2010

Open
wants to merge 12 commits into
base: next
Choose a base branch
from

Conversation

sofiushko
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

src/components/Toc/TocSections/TocSections.tsx Outdated Show resolved Hide resolved

import './TocSections.scss';

const b = block('toc-sections');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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}
Copy link
Contributor

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?

Comment on lines 4 to 6
$block: '.#{variables.$ns}toc-sections';

#{$block} {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$block: '.#{variables.$ns}toc-sections';
#{$block} {
$block: '.#{variables.$ns}toc';
#{$block}__sections {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants