Skip to content
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

Merged
merged 5 commits into from
Nov 6, 2019

Conversation

joyzhong
Copy link
Contributor

@joyzhong joyzhong commented Nov 5, 2019

No description provided.

@mdc-web-bot
Copy link
Collaborator

All 722 screenshot tests passed for commit 245f9f7 vs. master! 💯🎉

Copy link
Collaborator

@abhiomkar abhiomkar left a 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 Show resolved Hide resolved
@@ -305,6 +312,17 @@ $mdc-fab-icon-enter-duration_: 180ms;
}
}

@mixin mdc-fab--touch_($query: mdc-feature-all()) {
@include mdc-touch-target-component(
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

@abhiomkar abhiomkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mdc-web-bot
Copy link
Collaborator

All 722 screenshot tests passed for commit 3d99131 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 722 screenshot tests passed for commit 232c412 vs. master! 💯🎉

@joyzhong joyzhong merged commit 0c4d8f3 into master Nov 6, 2019
@joyzhong joyzhong deleted the feat/fab_touchtarget branch November 6, 2019 20:39
@import "@material/rtl/mixins";
@import "@material/theme/functions";
@import "@material/theme/mixins";
@import "@material/touch-target/mixins";
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sent #5236 to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants