-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
inverse
prop for dark
on Table
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`; |
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.
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)
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.
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'])]), |
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.
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 |
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.
Just noticing reflow was removed in bootstrap alpha.6, can you kill it in this PR 🙏
@TheSharpieOne I think this one is good to go. Let me know if there is anything else. |
#575