-
-
Notifications
You must be signed in to change notification settings - Fork 32
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(daffio,design): highlight active tree item in sidebar #2926
feat(daffio,design): highlight active tree item in sidebar #2926
Conversation
So the tree technically doesn't handle the "active" state unless Is there a different way to do this? |
no it does but the "overview" link will be active when a child guide is selected so you'll see 2 active items at once |
Also, getting this error in console in design-land:
|
I cannot repro that |
Why are the links below overview treated as child guides of overview? Shouldn't they be sibling to overview? |
@xelaint I'll use cart as an example. the cart driver guide is at |
apps/daffio/src/app/docs/components/docs-list/docs-list.component.html
Outdated
Show resolved
Hide resolved
4b82dda
to
49513a5
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.
lgtm
I'd expect a parent tree item to be open if there is an active/selected tree item within it. Should this be done in this PR or create a separate issue for it? |
separate PR |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Fixes: #2854
Does this PR introduce a breaking change?
Other information
The way the options must be set is unfortunate. There is no way to set the options from the
DaffTreeItemDirective
because of angular/angular#50700 (comment)