Closed raza2022 closed 7 years ago
I am closing for now as i switched to material-ui instead of react-toolbox to complete my project on time.
You just needed to add the CSS for the ripple! Sorry I didn't answer before!
@javivelasco I already switched to Material ui because it's urgent project, But Thanks :thumbsup:
@javivelasco I'm running into this issue now, what do you mean by "You just needed to add the CSS for the ripple"?
When the effect shown in the GIF happens it's because the CSS of the ripple is missing. Depending on the config you are using you might need to either import the component in a different way of to add the RIPPLE
component to your react-toolbox-themr
configuration. In any case the issue happens for that reason and I guess it's not an issue with the lib itself but with configuration
@javivelasco I am importing the Button like so:
import { Button } from 'react-toolbox/lib/button';
which would mean the theme should already be applied, no? Should I instead do this: import Button from 'react-toolbox/lib/button/Button';
and add BUTTON
and RIPPLE
to the react-toolbox-themr
configuration?
Here is my webpack2 config:
Disregard the !
after postcss-loader
, forgot to remove that before taking the screenshot
and part of my package.json looks like this:
@raza2022 @davidtsai130 You need to add the PostCSS dependencies listed on the react-toolbox
package. The only optional one is postcss-reporter
. Be sure to add them in the exact version they are listed (instead of the current stable versions), otherwise the CSS will still misbehave (Input
is a good example of this - label will not move up).
Since you already have a postcss-loader
on css files you should be fine with only those changes.
PS: Double-check your PostCSS config file. It should look similar to (or exactly like) this:
module.exports = {
plugins: {
'postcss-import': {
root: __dirname,
},
'postcss-mixins': {},
'postcss-each': {},
'postcss-cssnext': {},
},
};
Edit: here is my repo link https://github.com/raza2022/final-react @mjurincic @drhayes @okonet @owais @Rendez Thanks for the great work. I tried the tool box with a already scofoled project with https://github.com/stylesuxx/generator-react-webpack-redux after hours i successfully solved all errors link to
loaders
webpack
config
and bla bla. now the issue is that it's misbehavior some styles for example ripple effect ( when click on button ) it creates a big black circle instead of ripple effect. and after click on button it looks like :(here is my updated webpackconfig dev file
am working from 24 hours (-6 slepping :( ) just bumping my head on wall any help will be greatly appreciated