Skip to content

Commit

Permalink
Fix Button active status
Browse files Browse the repository at this point in the history
In #17676, the `active` prop in Icon/SVG got renamed to `__unstableActive`, but
Button was still using the old name.
  • Loading branch information
koke committed Oct 11, 2019
1 parent e41f61a commit 960a208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/button/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function Button( props ) {
const subscriptInactive = getStylesFromColorScheme( styles.subscriptInactive, styles.subscriptInactiveDark );

const newChildren = Children.map( children, ( child ) => {
return child ? cloneElement( child, { colorScheme: props.preferredColorScheme, active: ariaPressed } ) : child;
return child ? cloneElement( child, { colorScheme: props.preferredColorScheme, __unstableActive: ariaPressed } ) : child;
} );

return (
Expand Down

0 comments on commit 960a208

Please sign in to comment.