-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(virtual-scroll): add embedded examples #13327
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
Conversation
} | ||
|
||
.example-alternate { | ||
background: rgba(0, 0, 0, .2); |
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 think we may end up with white text on a white background if somebody selected a dark theme in the docs site.
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 don't think our examples really support theme styles, but I'll use a 50% gray so it at least looks ok in either.
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
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class CdkVirtualScrollContextExample { | ||
items = Array.from({length: 100000}).map((_, i) => `Item #${i}`); |
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.
nit: Can be reduced to new Array(100000).fill(0).map((_, i) =>
Item #${i})
which is slightly shorter.
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.
Yeah I originally had that but switched it to this. This feels more readable to me, so I think its better for the purposes of an example.
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
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.