Skip to content

[EuiSelectable] isVirtualized and data#5521

Merged
thompsongl merged 7 commits intoelastic:mainfrom
thompsongl:selectable-shared
Jan 11, 2022
Merged

[EuiSelectable] isVirtualized and data#5521
thompsongl merged 7 commits intoelastic:mainfrom
thompsongl:selectable-shared

Conversation

@thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Jan 6, 2022

Summary

Convenience PR to pull out shared features in #5157 and #5387:

  • Adds isVirtualized option to EuiSelectableList
    • Defaults to true
    • EuiSuggest will use false when implemented
  • Adds data to EuiSelectableList items for passing through data
    • Prevents major breaking changes to the shape of options in various components (FieldValueSelectionFilter and EuiSuggest)
    • Eventually we may look to merge the shape of options to align with EuiSelectable

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile

  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs and playground toggles
  • Added documentation
  • Checked Code Sandbox works for any docs examples
  • Added or updated jest and cypress tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@thompsongl thompsongl requested a review from cchaos January 6, 2022 17:22
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5521/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thank you for splitting this off. It's much easier to concentrate on specific changes.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5521/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5521/

@thompsongl thompsongl changed the title [EuiSelectable] isVirtualized and labelProps [EuiSelectable] isVirtualized and data Jan 11, 2022
@thompsongl thompsongl requested a review from cchaos January 11, 2022 19:02
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5521/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Pushed you a quick update to the docs and fix in the Sass to hide overflow of the items.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5521/

@thompsongl thompsongl merged commit d26becf into elastic:main Jan 11, 2022
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.

3 participants