-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat(grid): add product grid to ray product #234
Conversation
aab2cfd
to
df8b177
Compare
opened in place of #233 |
} | ||
|
||
.ray-grid__cell { | ||
background: hotpink; |
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.
device?: CellDevice; | ||
full?: boolean; | ||
justify?: CellJustify; | ||
pushColumn?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; |
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.
nit: you could assign this to a type and reuse
import { Grid } from '../src/components/Grid'; | ||
import '../src/components/Container/Container.scss'; | ||
|
||
|
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.
nit: extra new lines
<> | ||
<Container debug={false}> | ||
<Grid> | ||
<Grid.Cell span={1}>Span 1</Grid.Cell> |
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.
nit: you could loop these
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.
A few nit comments but nothing major
https://jira.weworkers.io/browse/WEB-754
Moves the Container, Grid, and Cell over from core-components.
I also updated the jest config in ray product-react to also check .tsx, .ts, and .jsx extensions. It looks like the tests weren't running on the tsx files.
Packages added:
enzyme-to-json - for snapshots to run similar to core-components
identity-obj-proxy - for stubbing out css modules in tests
The code here was mostly untouched except for swapping out classnames package for clsx