-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(text-field): add feature targeting for styles #5378
feat(text-field): add feature targeting for styles #5378
Conversation
Here's the before/after output: You'll notice that there are some differences. They come from the fact that I had to split the ripple styles into a separate mixin so that we can opt out of them for Angular Material. A side-effect of the split is that I also had to split away the outlined styles, because they need to be included after the ripple styles, because they have some overrides that hide the ripple. I've gone through all the examples in the screenshot test app and these changes don't seem to have an effect on the appearance. |
Codecov Report
@@ Coverage Diff @@
## master #5378 +/- ##
=========================================
Coverage ? 94.91%
=========================================
Files ? 163
Lines ? 6293
Branches ? 788
=========================================
Hits ? 5973
Misses ? 320
Partials ? 0 Continue to review full report at Codecov.
|
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.
Sent my first round of review comments.
There is incoming PR #5367 which is expected to merge today. You might want to rebase your branch after it is merged.
There are no more changes related to text field are expected this week.
Thanks!
PR #5367 is merged. Can you please rebase with master, I'll test this PR internally today. Thanks! |
1378560
to
ce0be4d
Compare
@abhiomkar I've rebased it and reworked it based on the feedback. Here are the updated before/after files. |
ce0be4d
to
7ff5d1e
Compare
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.
LGTM.
Ready to test internally.
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.
Sent 3 minor review comments after manually testing this PR internally.
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.
Apart from above review comments, rest of the changes looks good! This PR is conflicting with incoming change related to sass module refactor PR #5453 I'm not able to run global test since it is conflicting with above PR. @jathak Let me know if you are able to get the sass module change in today or next week first-half. If you think you'll need some more time we can merge this first and re-run migrator script on top of this. |
I think we can get the module system migration in by EOD Monday. I'm waiting on a TGP at 6 PM just to confirm that everything's working (a previous TGP with mostly similar code passed yesterday), but other than that I just need review/approval. |
7ff5d1e
to
8b87d3e
Compare
Thank you for looking into it @abhiomkar, I've pushed all the changes. It also cut the number of changes in the final output in half 👍. |
@asyncLiz Are we expecting any big changes to text field sass files? Can this PR go in first? |
Nothing coming up. The only change we have soon for textfield is #5439, and that's just DOM structure changes. |
Thanks Liz! @crisbeto It's time to rebase your PR with master. I'll run tests internally again once your PR is ready. Thanks! |
8b87d3e
to
d6d6f5d
Compare
I've resolved all of the conflicts and I have the feature targeting test passing, but the production build throws this error and I'm not quite sure how to deal with it:
|
Make sure you're testing with Sass version |
d6d6f5d
to
36985dd
Compare
It was because I was mixing |
Seems like there are still few minor CSS ordering changes that are unexpected. For example, Since text field has lots of subtle animations not all screenshot tests would capture it. As discussed on chat, let's try to keep the CSS ordering changes to minimal. Also it would be great if we can avoid introducing new mixins (Such as |
Sets up feature targeting for the text field and its related styles. Relates to material-components#4227.
36985dd
to
f246f22
Compare
@abhiomkar I managed to reduce the differences even more, but there are still some which are difficult to work around. Here's the breakdown:
Here are the updated before/after files. |
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.
Sets up feature targeting for the text field and its related styles.
Relates to #4227.
cc @mmalerba @devversion