Skip to content

Commit

Permalink
change order of composing style in svg primitive (#19927)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbinda authored Jan 29, 2020
1 parent 8c3bd8e commit 6987e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primitives/src/svg/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down

0 comments on commit 6987e37

Please sign in to comment.