-
Notifications
You must be signed in to change notification settings - Fork 356
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(Table): Use direct imports instead of spread #1237
fix(Table): Use direct imports instead of spread #1237
Conversation
PatternFly-React preview: https://1237-pr-patternfly-react-patternfly.surge.sh |
Pull Request Test Coverage Report for Build 4175
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karelhala Could you please resolve conflicts. Thanks.
Fyi the reason for this is that the styles plugin only exports a default object. This might be a good candidate for a lint rule since it has happened before. |
f4a260d
f2e5824
to
61173b7
Compare
3685e14
to
17466be
Compare
038c4bf
to
33ad211
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix(Table): Use direct imports instead of spread (#1237) * fix(Table): Use direct imports instead of spread * Do not show selects for collapsed rows * chore(release): releasing packages - patternfly4-react-lerna-root@1.42.4 - @patternfly/react-docs@3.21.13 - @patternfly/react-table@0.4.13 * fix(AboutModal): Use paragraph in heading (#1280) In PF core heading types of AboutModal were updated. This PR updates PF react with those changes. Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com> * chore(release): releasing packages - patternfly4-react-lerna-root@1.42.5 - @patternfly/react-core@1.51.4 - @patternfly/react-docs@3.21.14 - @patternfly/react-integration@1.0.12 - @patternfly/react-table@0.4.14 * Updated with core 167 updates * Fixed broken unit test and updated base.css to include pficon * Reverting the old toolbar. * Added Toolbar Layout Back. * Reverted Layout. * fix(styles): add toolbar css back to layout temporarily * fix(packages): add correct css include * fix(css): update css file * fix(import): move to tablecss * fix(grid): add grid style modifier * sort button * rebase changes and console log * fix(table): updated table * fix(toolbar): trying to fix toolbar again * snapshots
* fix(Table): Use direct imports instead of spread (patternfly#1237) * fix(Table): Use direct imports instead of spread * Do not show selects for collapsed rows * chore(release): releasing packages - patternfly4-react-lerna-root@1.42.4 - @patternfly/react-docs@3.21.13 - @patternfly/react-table@0.4.13 * fix(AboutModal): Use paragraph in heading (patternfly#1280) In PF core heading types of AboutModal were updated. This PR updates PF react with those changes. Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com> * chore(release): releasing packages - patternfly4-react-lerna-root@1.42.5 - @patternfly/react-core@1.51.4 - @patternfly/react-docs@3.21.14 - @patternfly/react-integration@1.0.12 - @patternfly/react-table@0.4.14 * Updated with core 167 updates * Fixed broken unit test and updated base.css to include pficon * Reverting the old toolbar. * Added Toolbar Layout Back. * Reverted Layout. * fix(styles): add toolbar css back to layout temporarily * fix(packages): add correct css include * fix(css): update css file * fix(import): move to tablecss * fix(grid): add grid style modifier * sort button * rebase changes and console log * fix(table): updated table * fix(toolbar): trying to fix toolbar again * snapshots
What:
When using react table there is tons of warnings due to missing exports in patternfly next styles. That is caused by using spread instead of default import. It is much safer (but a bit less readable) to use direct imports.
Allow first row to be collapsible by checking undefined instead of casting Boolean.
Do not show select in collapsed child unless show checkbox is engorced on row.