React-toolbox: Ability to remove ripple effect from the Checkbox

Created on 5 Jul 2017  路  4Comments  路  Source: react-toolbox/react-toolbox

Is it possible to remove ripple from the Checkbox element?
This doesn't work:
<Checkbox checked={this.state.check1} label="Checked option" onChange={this.handleChange.bind(this, 'check1')} ripple={false} />

Question

Most helpful comment

Hiding the ripple using display none, will keep the ripple node in the DOM.

All 4 comments

It doesn't look like Checkbox has a ripple property, the only thing I can think about is overriding the theme changing this line: https://github.com/react-toolbox/react-toolbox/blob/dev/components/checkbox/theme.css#L14

I have tried to override this part in my theme with no success. Even if I remove this part from default theme.css, the ripple still takes place.

There is a Theme section on the page http://react-toolbox.com/#/components/checkbox which contains some information: "ripple Used for the ripple component." But I don't understand how to use this option.

import CheckboxStyle from './Checkbox.css'; <Checkbox theme={CheckboxStyle} />
inCheckbox.css set .ripple{display: none};

Hiding the ripple using display none, will keep the ripple node in the DOM.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wtgtybhertgeghgtwtg picture wtgtybhertgeghgtwtg  路  3Comments

claudiuapetrei picture claudiuapetrei  路  4Comments

fraenku picture fraenku  路  3Comments

dbrrt picture dbrrt  路  3Comments

saintc0d3r picture saintc0d3r  路  4Comments