Skip to content

Commit

Permalink
Merge branch 'master' into 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Jan 29, 2018
2 parents d9cfb2f + 03cbfef commit 07b4867
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file. If a contri

## Unreleased

-
- Disable "speedy" mode for non-production cases (see [#1460](https://github.com/styled-components/styled-components/pull/1460))

## [v3.1.1] - 2018-01-29

Expand Down
5 changes: 5 additions & 0 deletions sandbox/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ const LiveEditor = LiveBlock.withComponent(_LiveEditor).extend`

const LivePreview = LiveBlock.withComponent(_LivePreview).extend`
background-color: white;
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
align-items: center;
`

const LiveError = styled(_LiveError)`
Expand Down
12 changes: 5 additions & 7 deletions sandbox/src/Button.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Button = styled.button`
font-size: 16px;
border-radius: 5px;
padding: 0.25em 1em;
margin: 0 1em;
margin: 1em 1em;
background: transparent;
color: palevioletred;
border: 2px solid palevioletred;
Expand All @@ -17,11 +17,9 @@ const Button = styled.button`
`};
`

const content = (
<div>
<Button>Normal Button</Button>
<Button primary>Primary Button</Button>
</div>
)
const content = [
<Button>Normal Button</Button>,
<Button primary>Primary Button</Button>,
]

render(content)
2 changes: 1 addition & 1 deletion src/models/BrowserStyleSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare var __DEV__: ?string

const DISABLE_SPEEDY =
(typeof __DEV__ === 'boolean' && __DEV__) ||
process.env.NODE_ENV === 'development'
process.env.NODE_ENV !== 'production'

const COMPONENTS_PER_TAG = 40
const SPEEDY_COMPONENTS_PER_TAG = 1000 // insertRule allows more injections before a perf slowdown
Expand Down
2 changes: 1 addition & 1 deletion test-results.json

Large diffs are not rendered by default.

0 comments on commit 07b4867

Please sign in to comment.