Skip to content

Commit

Permalink
adjust changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor authored Aug 27, 2018
1 parent def31b7 commit 530745e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ _The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
Keyframes is now implemented in a "lazy" manner: its styles will be injected with the render phase of components using them.

`keyframes` no longer returns an animation name, instead it returns an object which has method `.getName()` for the purpose of getting the animation name.

* Add `createGlobalStyle` that returns a component which, when mounting, will apply global styles. This is a replacement for the `injectGlobal` API. It can be updated, replaced, removed, etc like any normal component and the global scope will update accordingly, by @JamieDixon @marionebl and @yjimk (see #1416)

```jsx
const GlobalStyles = createGlobalStyle`
html {
color: 'red';
}
`

// then put it in your React tree somewhere:
// <GlobalStyles />
```

## [v3.4.2] - 2018-08-07

Expand All @@ -49,19 +62,6 @@ _The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
color,
}))
```
* Add `createGlobalStyle` that returns a component which, when mounting, will apply global styles. It can be updated, replaced, removed, etc like any normal component and the global scope will update accordingly, by @JamieDixon @marionebl and @yjimk (see #1416)
```jsx
const GlobalStyles = createGlobalStyle`
html {
color: 'red';
}
`

// then put it in your React tree somewhere:
// <GlobalStyles />
```
- Add support for the prop variants used by Preact (`autofocus`, `class`, `for`), by [@probablyup](https://github.com/probablyup) (see [#1823](https://github.com/styled-components/styled-components/pull/1823))
Expand Down

0 comments on commit 530745e

Please sign in to comment.