Skip to content

Commit

Permalink
fix(composeAnimation): fixed props inline, added props inlineBlock
Browse files Browse the repository at this point in the history
BREAKING CHANGE: inline props now addClass d-inline to animation instead of d-inline-block
  • Loading branch information
Dimitri Kopriwa committed Jan 17, 2019
1 parent e74c4dc commit 926f025
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/templates/composeAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function composeAnimation(makeAnimation) {
children: PropTypes.node.isRequired,
className: PropTypes.string,
theme: PropTypes.object.isRequired,
inlineBlock: PropTypes.bool,
inline: PropTypes.bool,
duration: PropTypes.string,
timingFunction: PropTypes.string,
Expand Down Expand Up @@ -138,6 +139,7 @@ export default function composeAnimation(makeAnimation) {
className,
children,
inline,
inlineBlock,
cssModule,
...rest
} = omit(this.props, [
Expand All @@ -161,7 +163,10 @@ export default function composeAnimation(makeAnimation) {
return (
<span
css={css`${this.state.styles}`}
className={mapToCssModules(cn({ 'd-inline-block': inline }, className), cssModule)}
className={mapToCssModules(cn({
'd-inline': inline,
'd-inline-block': inlineBlock,
}, className), cssModule)}
{...rest}
>
{children}
Expand Down

0 comments on commit 926f025

Please sign in to comment.