-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(layout-grid): Add fixed column width layout grid modifier. #816
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,12 @@ $mdc-layout-grid-default-gutter: ( | |
phone: 16px | ||
) !default; | ||
|
||
$mdc-layout-grid-column-width: ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe It would obviously have to be changed in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to look up for this pattern but haven't seen any one have this pattern 😞 The thing I search and found that use sass map to define different property based on screen size only appears in Not sure if I misunderstand what you meant here, could you elaborate a bit? |
||
desktop: 72px, | ||
tablet: 72px, | ||
phone: 72px | ||
) !default; | ||
|
||
$mdc-layout-grid-default-column-span: 4 !default; | ||
|
||
$mdc-layout-grid-max-width: null; |
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.
$size is kinda a vague variable...can it be $platform-type?
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.
Can we also add the same error handling in the sass as we do in
mdc-theme
? e.g.: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 feel the original code meant
screen-size
and I don't think it is vague. Since we both documented that clearly and do the type check, I feel fine to leave just as it is. WDYT?