Skip to content

Commit 1f7ffde

Browse files
committed
Changelog.
1 parent e8054c2 commit 1f7ffde

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

Changelog.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,58 @@
1+
# 1.3.0 - 2015-12-02
2+
3+
## New features
4+
5+
### Per examples state
6+
7+
Each example has its own state that you can access at the `state` variable and change with the `setState` function. Default state is `{}`.
8+
9+
```js
10+
<div>
11+
<button onClick={() => setState({isOpen: true})}>Open</button>
12+
<Modal isOpen={state.isOpen}>
13+
<h1>Hallo!</h1>
14+
<button onClick={() => setState({isOpen: false})}>Close</button>
15+
</Modal>
16+
</div>
17+
```
18+
19+
Related issue: #45.
20+
21+
### Ability to style a style guide
22+
23+
Now you can change almost any piece of a style guide. For example you can change a font and a background color:
24+
25+
```css
26+
.ReactStyleguidist-common__font {
27+
font-family: "Comic Sans MS", "Comic Sans", cursive;
28+
}
29+
.ReactStyleguidist-colors__base-bg {
30+
background: hotpink;
31+
}
32+
```
33+
34+
More [in the docs](https://github.com/sapegin/react-styleguidist#how-to-change-styles-of-a-style-guide).
35+
36+
Related issue: #32
37+
38+
### Other new features
39+
40+
* Table of contents (#28).
41+
* Ability to use Markdown in components and props descriptions (#32).
42+
* `PropTypes.shape` support (#20).
43+
* Ability to change path line via `getComponentPathLine` option (#41).
44+
45+
## Bug fixes
46+
47+
* Improved styles isolation: Styleguidist styles should not interfer with your components styles.
48+
* Removed sanitize.css that causes a lot of problems with component styles.
49+
* Fixed issue when using components with the same names as component in Styleguidist.
50+
51+
## Other changes
52+
53+
* Use [markdown-it](https://github.com/markdown-it/markdown-it) and [Markdown React](https://github.com/alexkuz/markdown-react-js) instead of Marked.
54+
* A lot of [documentation](https://github.com/sapegin/react-styleguidist/blob/master/Readme.md) improvements and new examples [in the demo style guide](http://sapegin.github.io/react-styleguidist/).
55+
156
# 1.2.1 - 2015-11-18
257

358
* Stateless React components support (#44, #46, by @sunesimonsen).

0 commit comments

Comments
 (0)