material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[raised-button] customisable ripple effect styles

Open clairefritz opened this issue 10 years ago • 10 comments

I need the ripples on the raised button to be at tad darker, but for now their opacity is hardcoded to "0.1" or "0.16", which is limiting. How about making the opacity and color of the ripples customisable? That would be one less magic number in the source code and one little step towards a module that's more flexible. Anyone? :)

clairefritz avatar Feb 16 '16 14:02 clairefritz

#3354 Here's my update that enables this.

clairefritz avatar Feb 16 '16 15:02 clairefritz

@oliviertassinari @alitaheri should I add opacity in ripple(muitheme) and use it in raisedButton.? It will solve this problem

heetvachhani avatar Feb 16 '16 19:02 heetvachhani

@heetvachhani Yeah it will solve some parts of it. and actually it's better approach. but having rippleStyle isn't bad either. @heetvachhani Please also add that to the theme.

@clairefritz Please wait a little so @heetvachhani changes are merged. then we'll get back to your PR. thanks :+1:

alitaheri avatar Feb 16 '16 19:02 alitaheri

should I add opacity in ripple(muitheme) and use it in raisedButton.? It will solve this problem

I'm wondering where we should put the line between what we put inside the muiTheme and what we don't.

oliviertassinari avatar Feb 16 '16 19:02 oliviertassinari

@oliviertassinari It doesn't really matter after merging your PR. They will all be moved to the source code. for now this is a great way to keep track of what users need to customize.

alitaheri avatar Feb 16 '16 20:02 alitaheri

hmm was wondering the same! I guess we can put things that needs lot of customization and needs to be flexible in design :smile:

heetvachhani avatar Feb 16 '16 20:02 heetvachhani

can we close this issue? @alitaheri

heetvachhani avatar Feb 23 '16 14:02 heetvachhani

Sure :+1: Thanks a lot @heetvachhani

alitaheri avatar Feb 23 '16 15:02 alitaheri

@heetvachhani - https://help.github.com/articles/closing-issues-via-commit-messages/

Convention is to put it at the bottom of your PR description: http://chris.beams.io/posts/git-commit/, but anywhere will work

mbrookes avatar Feb 24 '16 00:02 mbrookes

thanks a lot @mbrookes :+1: will take care of it in next commit :smile:

heetvachhani avatar Feb 24 '16 00:02 heetvachhani