Skip to content
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

Fix datagrid not fitting into containers #3894

Merged
merged 2 commits into from
Aug 12, 2020
Merged

Conversation

snide
Copy link
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

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

Copy link
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
Contributor

jenkins test this

@kibanamachine
Copy link

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

@thompsongl
Copy link
Contributor

:grumble: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD

jenkins test this

@kibanamachine
Copy link

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
Contributor

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

@snide
Copy link
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