Skip to content

Commit c100272

Browse files
committed
Fixes #245 - Button enableShadow prop should be taken from theme props
1 parent 7ec371d commit c100272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/button/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export default class Button extends BaseComponent {
304304

305305
getShadowStyle() {
306306
const backgroundColor = this.getBackgroundColor();
307-
const {enableShadow} = this.props;
307+
const {enableShadow} = this.getThemeProps();
308308
if (enableShadow) {
309309
return [this.styles.shadowStyle, backgroundColor && {shadowColor: backgroundColor}];
310310
}

0 commit comments

Comments
 (0)