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

fix(shape): Add noflip comments, fix RTL for categories #4116

Merged
merged 2 commits into from
Nov 27, 2018

Conversation

kfranqueiro
Copy link
Contributor

This has 3 changes/fixes:

  • Don't bother emitting separate RTL styles when we can easily tell it's identical to LTR
  • Add @noflip annotations to both the LTR and RTL emitted styles when both are emitted
  • Fix RTL emitted styles to resolve shape category names (this caused a bug in drawer's RTL styles previously)

@if ($needs-flip) {
/* @noflip */
}

Copy link
Contributor

Choose a reason for hiding this comment

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

is annotation with new line acceptable?

this generates

/* @noflip */

border-radius: mdc-shape-prop-value($radius);

instead of

/* @noflip */
border-radius: mdc-shape-prop-value($radius);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was wary of that too, but when I looked at the diff between the all-in-one CSS before and after, I didn't see any empty newlines generated by these changes.

@mdc-web-bot
Copy link
Collaborator

All 663 screenshot tests passed for commit 735692b vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 663 screenshot tests passed for commit 3afff8e vs. master! 💯🎉

@kfranqueiro kfranqueiro merged commit 62054f8 into master Nov 27, 2018
@kfranqueiro kfranqueiro deleted the fix/shape-rtl branch November 27, 2018 23:46
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.

None yet

4 participants