-
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(fab): Add support for increased touch target to mini FAB. #5231
Conversation
All 722 screenshot tests passed for commit 245f9f7 vs. |
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 good overall, minor comments.
packages/mdc-fab/_mixins.scss
Outdated
@@ -305,6 +312,17 @@ $mdc-fab-icon-enter-duration_: 180ms; | |||
} | |||
} | |||
|
|||
@mixin mdc-fab--touch_($query: mdc-feature-all()) { | |||
@include mdc-touch-target-component( |
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.
Not in the scope of this PR but would it make sense to rename mdc-touch-target-component()
to mdc-touch-target-margin()
? I think this mixin is only applying margin to increase its touch size.
WDYT?
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.
Makes sense! I'll do this in a follow-up CL/PR.
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!
All 722 screenshot tests passed for commit 3d99131 vs. |
All 722 screenshot tests passed for commit 232c412 vs. |
@import "@material/rtl/mixins"; | ||
@import "@material/theme/functions"; | ||
@import "@material/theme/mixins"; | ||
@import "@material/touch-target/mixins"; |
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.
FAB's package.json missing dependency for touch target which might be causing failures in canary release?
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.
Sent #5236 to fix.
No description provided.