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

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
Collaborator

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 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