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
Threescale 3057 disable pf inline styles injection #1019
Threescale 3057 disable pf inline styles injection #1019
Conversation
98849e8
to
89cbe34
Compare
@didierofrivia Maybe you can help me |
89cbe34
to
84677de
Compare
Codecov Report
@@ Coverage Diff @@
## master #1019 +/- ##
=========================================
Coverage ? 92.29%
=========================================
Files ? 2397
Lines ? 77850
Branches ? 0
=========================================
Hits ? 71848
Misses ? 6002
Partials ? 0 Continue to review full report at Codecov.
|
4b11c70
to
1cdc87e
Compare
UPDATE: |
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.
I don't think all those stylesheets should be added by default in pf4BaseStyles.js. Those belong to individual components that we don't use in some cases and are messing with the main.css.
We should add them in Rails' assets pipeline like so that we have actual control of what we want and what we don't want to include. Generally speaking we should be very careful when adding styles to avoid unexpected changes.
First, we need to agree if we are moving all assets to Rails pipeline or if we keep some assets in the webpacker scope. Then, if we decide to move everything to Rails we need to decide if we:
WDYT @didierofrivia @josemigallas @3scale/system |
We should not involve the assets pipeline, but we should definitely be precise and use only the modules required, not everything. Webpack should take care of all the node assets, you could also use the webpacker |
Agree, let's do webpacker deal with node_modules |
d3f4663
to
8023cc4
Compare
8beba02
to
1111948
Compare
1111948
to
bca914e
Compare
bca914e
to
9aaeb7a
Compare
c7f5ec5
to
7490488
Compare
7490488
to
8b94a77
Compare
What this PR does / why we need it:
PF4/React by default injects css inline, it pollutes our markup and is difficult to find errors happening in our CI
Which issue(s) this PR fixes
https://issues.jboss.org/browse/THREESCALE-3057
Verification steps
rm -rf node_modules
npm install
Special notes for your reviewer: