-
Notifications
You must be signed in to change notification settings - Fork 227
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
Remove scss extensions from @material/mdc-* imports #62
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
CLAs look good, thanks! |
@johnelliott Thanks for opening the PR. You're right it's not necessary and we can remove the extension from the filename. Can you also remove it from card, floating-label, line-ripple, and text-field Sass files for consistency? Also something I realize is that you do not have the creds for the screenshot tests. I pushed a commit to see if it works for me. |
@moog16 thanks Matt. I like this lib; want to show my support :) I'll update too. |
Is it OK to add line-ripple, floating-label to the allowed scopes for commit messages? |
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
=======================================
Coverage 99.17% 99.17%
=======================================
Files 18 18
Lines 607 607
Branches 49 49
=======================================
Hits 602 602
Misses 5 5 Continue to review full report at Codecov.
|
Perhaps this test failure is also permissions-related for the screenshot job. |
RE allowed scopes: YES definitely RE Testing: Looking into Docker. Might be able to help us here. |
Ok, I use Docker and maybe that'd be the easiest way to get many people up and running those tests. I would be OK helping to set that up but I'd need initial direction. |
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.
@johnelliott I think you're right, but I'm not sure why. Maybe its because you're out of the org? I will look into this. But I'll accept the changes.
Opened this issue concerning tests: #71. I'm just gonna run the tests locally and merge this for you. Thanks! |
Thanks @moog16 |
Hi, I would like to help with material-components-web-react.
The sass imports are handy, but I was having trouble importing SCSS from Button. I needed to directly import the css from the non-react package, basically duplicating the intent of the index.scss of react-button:
When I looked at the icon component sass import I noticed that it didn't have an extension. Going into node_modules and removing it from the button index.scss file fixed the issue and allowed me to just import the button styles with
@import "@material/button/mdc-button";
, so perhaps this was just an oversight.I've never used learn before, so I may need help figuring out how to contribute to this codebase :/