Skip to content
This repository has been archived by the owner on Dec 13, 2017. It is now read-only.

Commit

Permalink
Merge b7b25f5 into 3e6d304
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Stephens committed Sep 15, 2016
2 parents 3e6d304 + b7b25f5 commit cb2e8a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("Background Decorator", () => {
const SpiedChannel = new EventEmitter();
const backgroundDecorator = shallow(<BackgroundDecorator story={testStory} channel={SpiedChannel} />);

expect(backgroundDecorator.html().match(/background-color:transparent/gmi).length).toBe(1);
expect(backgroundDecorator.html().match(/background:transparent/gmi).length).toBe(1);
});

it("should set internal state when background event called", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const style = {
transition: "background 0.25s ease-in-out",
backgroundPosition: "center",
backgroundSize: "cover",
backgroundColor: "transparent",
background: "transparent",
},
};

Expand Down Expand Up @@ -56,7 +56,7 @@ export class BackgroundDecorator extends React.Component<any, any> {

render() {
const styles = style.wrapper;
styles.backgroundColor = this.state.background;
styles.background = this.state.background;
return <div style={assign({}, styles)}>{this.story}</div>;
}
}
Expand Down

0 comments on commit cb2e8a1

Please sign in to comment.