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

BS4 beta 2 updates for Table #694

Merged
merged 7 commits into from
Dec 4, 2017
Merged

BS4 beta 2 updates for Table #694

merged 7 commits into from
Dec 4, 2017

Conversation

supergibbs
Copy link
Collaborator

@supergibbs supergibbs changed the title Deprecated inverse prop for dark on Table BS4 beta 2 updates for Table Nov 17, 2017
src/Table.js Outdated
hover ? 'table-hover' : false,
reflow ? 'table-reflow' : false
), cssModule);

const table = <Tag {...attributes} className={classes} />;

if (responsive) {
const responsiveClassName = responsive === true ? 'table-responsive' : `table-${responsive}-responsive`;
Copy link
Member

Choose a reason for hiding this comment

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

looks like it should be table-responsive-${responsive}.
Also looks like they killed the wrapper needed for responsive (something that was missing in alpha.6 upgrade)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But the tests pass? :P wow, can't believe I missed that!

src/Table.js Outdated
hover: PropTypes.bool,
reflow: PropTypes.bool,
responsive: PropTypes.bool,
responsive: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['sm', 'md', 'lg', 'xl'])]),
Copy link
Member

Choose a reason for hiding this comment

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

I would just allow a string in case someone wants to extend bootstrap to add additional/custom breakpoints

PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),

src/Table.js Outdated
@@ -44,16 +46,17 @@ const Table = (props) => {
size ? 'table-' + size : false,
bordered ? 'table-bordered' : false,
striped ? 'table-striped' : false,
inverse ? 'table-inverse' : false,
(dark || inverse) ? 'table-dark' : false,
hover ? 'table-hover' : false,
reflow ? 'table-reflow' : false
Copy link
Member

Choose a reason for hiding this comment

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

Just noticing reflow was removed in bootstrap alpha.6, can you kill it in this PR 🙏

@supergibbs
Copy link
Collaborator Author

@TheSharpieOne I think this one is good to go. Let me know if there is anything else.

@TheSharpieOne TheSharpieOne merged commit 3377cdc into reactstrap:master Dec 4, 2017
@supergibbs supergibbs deleted the bs4-beta.2-tables branch December 4, 2017 21:42
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.

2 participants