Skip to content

Fix datagrid not fitting into containers#3894

Merged
snide merged 2 commits intoelastic:masterfrom
snide:bug/gridcontainer
Aug 12, 2020
Merged

Fix datagrid not fitting into containers#3894
snide merged 2 commits intoelastic:masterfrom
snide:bug/gridcontainer

Conversation

@snide
Copy link
Copy Markdown
Contributor

@snide snide commented Aug 11, 2020

Summary

Fixes #3878

Related to theKashey/react-focus-on#47 , our focus trap solution didn't accept style props. Regardless, it accepts className and we should use that instead.

image

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
  • Added documentation
  • [ ] Checked Code Sandbox works for the any docs examples
  • Added or updated jest 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

@kibanamachine
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

LGTM; confirmed with the docs deployment that the "Data grid adapts to its container" example is as it should be.

@thompsongl
Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine
Copy link
Copy Markdown

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

@thompsongl
Copy link
Copy Markdown
Contributor

:grumble: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD

jenkins test this

@kibanamachine
Copy link
Copy Markdown

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

@snide snide merged commit 5ebf353 into elastic:master Aug 12, 2020
@snide snide deleted the bug/gridcontainer branch August 12, 2020 00:32
@chandlerprall
Copy link
Copy Markdown
Contributor

@snide @thompsongl curious, how would implementing Emotion affect this? Can we ask it to generate classnames?

@snide
Copy link
Copy Markdown
Contributor Author

snide commented Aug 12, 2020

Yes, it forces it through the css prop, which generates the selector without using className directly.

nyurik pushed a commit that referenced this pull request Aug 18, 2020
* Fix datagrid not fitting into containers

* cl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data grid no longer adapts to its container in recent versions

4 participants