From 51c3e169ea27612e29a6fb50e405acc527a203c6 Mon Sep 17 00:00:00 2001 From: Jakub Binda Date: Tue, 28 Jan 2020 14:08:33 +0100 Subject: [PATCH] change order of composing style in svg primitive --- packages/primitives/src/svg/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primitives/src/svg/index.native.js b/packages/primitives/src/svg/index.native.js index aa619dc61e4913..ec084ff5222abd 100644 --- a/packages/primitives/src/svg/index.native.js +++ b/packages/primitives/src/svg/index.native.js @@ -20,7 +20,7 @@ export const SVG = ( { className = '', isPressed, ...props } ) => { const colorScheme = props.colorScheme || 'light'; const stylesFromClasses = className.split( ' ' ).map( ( element ) => styles[ element ] ).filter( Boolean ); const defaultStyle = isPressed ? styles[ 'is-pressed' ] : styles[ 'components-toolbar__control-' + colorScheme ]; - const styleValues = Object.assign( {}, props.style, defaultStyle, ...stylesFromClasses ); + const styleValues = Object.assign( {}, defaultStyle, props.style, ...stylesFromClasses ); const appliedProps = { ...props, style: styleValues };