-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Introduce experimental grid support #567
Introduce experimental grid support #567
Conversation
Looks good to me! I am guessing you intend for future flags to be Is Carbon’s rem also 16px? The only thing that seems important to me is a devDependency for |
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.
Look perfect - Thanks @joshblack! 👍
This looks good to me! |
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.
LGTM too! 👍
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.
🙌
Hey y’all, do you sometimes do multiple PRs for a single issue? We had a few more requirements in the issue. Also, is Carbon’s |
Hey @seejamescode! I think this was just merged in early, no sweat. We definitely do multiple PRs for one issue though, with the goal of trying to keep PRs smaller. Looking at css-gridish stuff now, is there a way to specify what gets generated? For example, we wouldn't want to output a sketch file in the build step for the grid files. |
No, we should make that a config option over at |
I'd prefer to merge that in once we can control what gets generated. And yes, our rem size is |
Made an issue on |
…esign-system#567) Did the following: * Made some changes to calculate the position in the right phase in the component lifecycle * Removed several hard-coded geometries to accomodate future style changes * Hoisted several logic as non-class functions so that they are independent of class state * Enhanced `menuOffset` prop in `<FloatingMenu>` to support a callback to return the offset, e.g. to give `<OverflowMenu>` a chance to calculate the adjustment of non-centered menu arrow * Enhanced `<Icon>` so that `<svg>` in it can be grabbed, to allow calculating tooltip position based on that, and the padding in the outer container doesnot affect the positioning These would make us easier to make future enhancement to `<FloatingMenu>`, easing the complexity introduced to support code paths of with/without React portal API.
Overview
Adds support for the experimental grid into carbon.
Added
src/globals/grid/experimental
directory added with experimental grid specsChanged
src/globals/grid/_grid.scss
moved tosrc/globals/grid/classic
src/global/grid/_grid.scss
exports the grid module and toggles imports for experimentalRemoved
Testing / Reviewing
css--use-experimental-grid
to true includes the default experimental grid codecss--use-experimental-grid
andcss--use-experimental-grid-fallback
both to true includes the fallback for the experimental grid in addition to the default implementation