-
Notifications
You must be signed in to change notification settings - Fork 15
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
#66: Should work without CSS in modern browsers (closes #66) #68
Conversation
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 💯!
(unrelated to this pr) Are any of the "known issues" with IE11 here https://caniuse.com/#feat=flexbox worth a warning?
src/FlexView.tsx
Outdated
justifyContent: alignPropToFlex(column ? vAlignContent : hAlignContent), | ||
alignItems: alignPropToFlex(column ? hAlignContent : vAlignContent), | ||
|
||
// style passed throw props |
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.
through?
src/FlexView.tsx
Outdated
const style = this.getStyle(); | ||
const props = omit(this.props, Object.keys(FlexView.propTypes)); | ||
return ( | ||
<div className={className} style={style} {...props}> | ||
<div className={`react-flex-view ${this.props.className || ''}`.trim()} style={style} {...props}> |
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.
Are you leaving the class to be slightly less breaking or some other reason?
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.
yes, I think we are relying on that class
in some projects... for modern browsers this PR should not be breaking (apart from removing the import of the no longer existing SASS)
Closes #66
Test Plan
tests performed
tests not performed (domain coverage)