[EuiCodeBlock] Virtualized option#4952
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
| The <strong>EuiCode</strong> and <strong>EuiCodeBlock</strong>{' '} | ||
| components support{' '} | ||
| <EuiLink external href="https://github.com/wooorm/refractor#syntaxes"> | ||
| <EuiLink external href="https://prismjs.com/#supported-languages"> |
There was a problem hiding this comment.
No language changes here. Just being consistent on links to prismjs vs. refractor
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
myasonik
left a comment
There was a problem hiding this comment.
Tested in VO and virtualization works with no issues!
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
cchaos
left a comment
There was a problem hiding this comment.
The new example LGTM 👍 . I had one question around a particular use-case and a quick comment suggestion.
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
1 similar comment
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
|
One thing I noticed, is that the virtualized examples all have |
Good catch. It used to work; taking a look. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
|
flaky test jenkins test this |
cchaos
left a comment
There was a problem hiding this comment.
👍 Thanks for fixing the copy function.
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4952/ |
Summary
Closes #1208 by adding an option to virtualize line rendering using
react-window.isVirtualizedprop. SettingoverflowHeightis required with this configuration.overflowHeightnow accepts a percentage value in string form. Consumers need to ensure the parent has calculable height.Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile