-
Notifications
You must be signed in to change notification settings - Fork 16
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
chore: use colors from @dhis2/ui-core #306
Conversation
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.
Can you try to use the theme from ui-core instead?
The : character is the default namespace separator and causes i18next to choke if present in a string. Nothing we can do in the app as the i18next init is defined in d2-i18n and not accessible from the app.
@cooper-joe provided the following color codes mapping between the colors file and ui-core theme
|
ui-core seems to cause a problem in the app build.
See: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
…glifyjs (#308) To allow DV to use the ui-core components (which are shipped as ES6 code), the App is responsible to compile the ui-core components into the target of the App. The problem is that UglifyJS does not support ES6, so we need to compile the ES6 code to ES5 code before shipping it to the html-webpack-plugin[1] minifier, which uses html-minifier[2] which finally runs the uglifyjs library[3] which crashes. > uglify-js only supports JavaScript (ECMAScript 5). To solve this we need to allow webpack to run babel on @dhis2-scope packages in node_modules. [1] https://github.com/jantimon/html-webpack-plugin#minification [2] https://github.com/kangax/html-minifier [3] https://github.com/mishoo/UglifyJS2
Found one more place with hardcoded colors: App.css. |
@edoardo Approved. When you squash merge, could you include Viktor's explanation of the webpack changes in the commit description? |
🎉 This PR is included in version 33.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 33.1.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Depends on dhis2/analytics#33!Use shared colors.