-
Notifications
You must be signed in to change notification settings - Fork 355
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 the react-bootstrap grid system #77
Conversation
thanks @sharvit - I don't see any issue w/ this. We'll be able to convert this repo to SASS pretty soon most likely, but LESS works for now 😄 The only thing I'm noting here now is that our defaultTemplate shows "This pattern does not yet exist in PatternFly." Since PF just uses Bootstrap rows/cols, I'm wondering if we shouldn't update the default template to accept a Thoughts @jgiardino @mturley @LHinson ? |
Are you planning to export patternfly scss files as part of the package? It is making sense to add the bootstrap docs urls to the views API. |
I believe the preliminary plan is to still consume PF Core SASS from PF Core ( |
This seems fine to me at first glance, is it really necessary though to make a two-line file for each of the grid components? If they are just imported and exported again in |
I didn't realize there was a precedent. That's fine, we can just leave it.
…On Thu, Nov 16, 2017, 7:02 PM Patrick Riley ***@***.***> wrote:
@mturley <https://github.com/mturley> @sharvit
<https://github.com/sharvit> i'd be ok with removing the two-line files
as long as it's *consistent*. We can open up a subsequent PR to change
the others if that is the preference...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxju8Mj3VXnQvHLLojniLkyqEjxrLjWks5s3Ms0gaJpZM4QglZG>
.
|
@mturley @priley86 I prefer to have one file for each component so when I want to look into component I only need to search for a file with the component name. About the scss, I prefer to consume only one package that can supply for me the components, scss, font, icons and so... |
Thanks for contributing this, @sharvit! This is a great addition! There were a couple of things I noticed regarding classes. @andresgalante could you also review this one and see if there's anything I missed?
|
<Container fluid>
...
</Container> More cool props: |
@sharvit i think @jgiardino would like to review this some more today. We should be able to introduce |
@sharvit if you can rebase this and clean up other |
@priley86 - Will be done soon 👍 |
aa1fba7
to
ecf95b1
Compare
@priley86 - ready to get merged |
@sharvit I think @jgiardino is referring to the fact that most if not all PF patterns today are using |
@sharvit @mturley let me know if this PR is blocking anything else... else I would say, let's wait for @jgiardino's feedback. She is back from the holiday break next week... @sharvit are you able to start working on Forms / Form components in the mean time? My guess is these will be needed in many places too... |
@priley86 - I don't believe it will be smart to make the It is not blocking me because i can still use the @danseethaler - did you had a progress with the forms and the search since our last chat? |
@sharvit @priley86 |
@sharvit I have worked on the search component but not the patternfly-react context. It's just been in foreman for the RedHat Repos page. We has some discussion this morning about it though and I will probably be working on getting it over to patternfly-react this iteration. |
ecf95b1
to
7afc149
Compare
@priley86 @jgiardino I will continue to integrate the basic form components as describe here #65 (comment) |
src/Grid/Clearfix.js
Outdated
@@ -0,0 +1,2 @@ | |||
import { Clearfix } from 'react-bootstrap' |
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.
cant you just
export { Clearfix } from 'react-bootstrap'
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.
@ohadlevy I wanted to be consistent with other files like:
https://github.com/patternfly/patternfly-react/blob/master/src/MenuItem/MenuItem.js
Exporting components from react-bootstrap
is a common task, i think it should be consistent everywhere.
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.
src/Grid/index.js
Outdated
@@ -0,0 +1,4 @@ | |||
export { default as Grid } from './Grid' |
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.
Again, consistency thing here. I haven't been using an individual index.js
in each component, but if we decide to, should it be done everywhere? Just please update the PR to make other components consistent.
@sharvit other than the consistency issues, i think this is good to be merged now. I will merge this PR if you can reach a resolution on this. |
@priley86 - I feel I should create a new pr to reflect my point of view about the consistency and we can continue to discuss from there. |
@sharvit 👍 works great for me. Let's rebase other PRs after. |
@sharvit any chance you can pull up this PR soon? I think it will be important to clarify it. |
@priley86 the consistency one? I believe I can 👍 |
yep - would be great to figure this out so I can do less rebases later :) |
7afc149
to
c55517c
Compare
Add the react-bootstrap grid components to patternfly-react (Grid, Row, Col, Clearfix)
c55517c
to
b1bc843
Compare
@sharvit looking good 👍 - I think we are ready to merge here. We can convert all Less to Sass in a future PR. @jgiardino any further issues here? |
LGTM! |
@jgiardino 💯 ... and we can say it was you if anything breaks 🤣 😆 ?? |
…nfly#77) * fix(package): move package to all npm scripts internally * add server.js and change start command
Add the react-bootstrap grid components to patternfly-react (Grid, Row, Col, Clearfix)
What:
Add gird-system components from react-bootstrap:
Why:
To reduce the need to import
react-bootstrap
packageHow:
Export those components from
react-bootstrap
Storybook:
https://sharvit.github.io/patternfly-react/?knob-Label=Danger%20Will%20Robinson%21&knob-ShowClearfix=true&selectedKind=Grid&selectedStory=Basic%20Grid&full=0&down=1&left=1&panelRight=0&downPanel=storybooks%2Fstorybook-addon-knobs