Repository navigation
Multiple fixes for mobile tables - #1462
Conversation
chandlerprall
left a comment
There was a problem hiding this comment.
Should we trigger a console.warn if a deprecated prop is used?
aa3537f to
f9078a7
Compare
chandlerprall
left a comment
There was a problem hiding this comment.
small TS change, otherwise proptypes and ts defs look great!
|
Sweet. Ok, then I'll update all other table examples to use the proper props. |
d495ff3 to
63a592b
Compare
235f90a to
aa54cc8
Compare
|
Ok, I think I'm done with this PR finally. 🥇 @chandlerprall Can you do a double check mainly just on this file: https://github.com/elastic/eui/pull/1462/files#diff-cca6a37365f48c17b61c1ad941a710c1 and especially concerning the select all checkbox where I ended up having to append a |
chandlerprall
left a comment
There was a problem hiding this comment.
Changes still LGTM
And added back in all the i18n stuff
1a4ec33 to
1a8a81a
Compare
1. Better singular prop object
mobileOptions object accepts the following:
That means the following props are being deprecated:
mobileOptions.headermobileOptions.only = true&mobileOptions.header = falsemobileOptions.show = falsemobileOptions.fullWidthExample
2. The mobileOptions.header prop accepts a node for rendering
... Instead of using the CSS
content: attr(data-header)trick. It's displayed directly in the DOM. Fixes #1315cc @cjcenizal
3. EuiBasicTable properly adds support for the mobile version of "Select all"
Fixes #1036
Deprecation Notice
Again, this deprecates some of the responsive-only props in favor of the
mobileOptionsobject. However, it is currently not a breaking change. The old props will still work, but the object will override them if both are provided.Testing
So I've left all but the Responsive and Custom examples as they were, to ensure that these are still working. Then when I get approval of the new object prop, I will update all the examples to use the proper prop.
I also ran this through Kibana via
yarn linkand went through a bunch of table-heavy pages and didn't come up with any breaks. Though I didn't run it through any tests.Checklist
[ ] This required updates to Framer X components