Skip to content

Commit

Permalink
pass through props in Ripple
Browse files Browse the repository at this point in the history
  • Loading branch information
kagux committed Jan 26, 2016
1 parent f16934c commit 0deee32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/ripple/Ripple.jsx
Expand Up @@ -14,7 +14,8 @@ const Ripple = (options = {}) => {
const {
centered: defaultCentered,
className: defaultClassName,
spread: defaultSpread
spread: defaultSpread,
...props
} = {...defaults, ...options};

return ComposedComponent => {
Expand Down Expand Up @@ -108,7 +109,7 @@ const Ripple = (options = {}) => {
return (
<ComposedComponent {...other} onMouseDown={this.handleMouseDown}>
{children ? children : null}
<span data-react-toolbox='ripple' className={style.wrapper}>
<span data-react-toolbox='ripple' className={style.wrapper} {...props}>
<span ref='ripple' role='ripple' className={rippleClassName} style={rippleStyle} />
</span>
</ComposedComponent>
Expand Down

0 comments on commit 0deee32

Please sign in to comment.