-
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
fix(fab): Separate mixins for regular FAB and Extended FAB #4082
Conversation
|
||
@mixin mdc-fab-extended-shape-radius($radius, $rtl-reflexive: false) { |
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.
Is the &.mdc-fab--extended
selector now redundant since this is only expected to be used within that context?
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.
Also, added not() selector for regular/mini fab variant so extended variant don't get extra styles.
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>extended-padding FAB Mixin - MDC Web Screenshot Test</title> |
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.
Update titles in new screenshot test pages
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.
Needs updated golden.json, then LGTM
🤖 Beep boop! Screenshot test report 🚦8 screenshots changed from |
BREAKING CHANGE: Fab now has 2 separate mixins -
mdc-fab-shape-radius
for regular & mini Fab variants &mdc-fab-extended-shape-radius
for Extended FAB variant.Before:
After:
Where,
mdc-fab-shape-radius
doesn't resolve percentage to absolute value.mdc-fab-shape-radius
sets rounded shape to regular & mini FAB.mdc-fab-extended-shape-radius
sets rounded shape to only Extended FAB.Fixes #3989