Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
no mutations
  • Loading branch information
Victor Saiz committed Aug 19, 2016
commit 554b5fcfb57fe4ffe02a953f810ce10c2abfb148
4 changes: 2 additions & 2 deletions src/components/themr.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
function themeable(style = {}, theme) {
if (!theme) return style
return Object.keys(theme).reduce((result, key) => (
Object.assign({}, result, { [key]:
Object.assign(result, { [key]:
style[key] && theme[key].indexOf(style[key]) === -1
? `${style[key]} ${theme[key]}`
: theme[key] || style[key]
})), style)
})), Object.assign({}, style))
}

function validateComposeOption(composeTheme) {
Expand Down