Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix(fab): Adjust fab line-height #5254

Merged
merged 3 commits into from
Nov 14, 2019
Merged

fix(fab): Adjust fab line-height #5254

merged 3 commits into from
Nov 14, 2019

Conversation

EstebanG23
Copy link
Contributor

No description provided.

@@ -333,6 +333,8 @@ $mdc-fab-icon-enter-duration_: 180ms;
width: auto;
max-width: 100%;
height: $mdc-fab-extended-height;
/* @alternate */
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a code comment about why we do this?

Copy link
Contributor Author

@EstebanG23 EstebanG23 Nov 14, 2019

Choose a reason for hiding this comment

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

It is mostly an issue with the CSS compilation because there are multiple identical, non-alternate declarations in the same ruleset. line-height is being set twice within .mdc-fab--extended, once in mdc-typography(button, $query: $query) and then again here. Similar code is done within button/mixins.scss.

Added comment!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, I meant comment for line-height: inherit :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries, updated the comment 👍

@@ -333,6 +333,8 @@ $mdc-fab-icon-enter-duration_: 180ms;
width: auto;
max-width: 100%;
height: $mdc-fab-extended-height;
/* @alternate */
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, I meant comment for line-height: inherit :)

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

Successfully merging this pull request may close these issues.

4 participants