Skip to content

Commit 8cf2070

Browse files
authored
Merge pull request #168 from reactjs/classnames
Cleanup for 1.0
2 parents e5fab6b + 78a5045 commit 8cf2070

File tree

16 files changed

+569
-251
lines changed

16 files changed

+569
-251
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# Changelog
22

3+
### Next Major
4+
5+
#### Breaking Changes
6+
7+
- `activeTabClassName` was renamed to `selectedTabClassName`
8+
- `selectedTabClassName` and `disabledTabClassName` moved from `<TabList />` to `<Tabs />`
9+
- `className` property on all components now overwrites the default classes instead of adding a second class name
10+
11+
```js
12+
// 0.8
13+
<Tabs className="tabs">
14+
<TabList className="list">
15+
<Tab className="tab" />
16+
</TabList>
17+
<TabPanel className="panel" />
18+
</Tabs>
19+
20+
// Same effect in 1.0
21+
<Tabs className={['tabs', 'ReactTabs']}>
22+
<TabList className={['list', 'ReactTabs__TabList']}>
23+
<Tab className={['tab', 'ReactTabs__Tab']} />
24+
</TabList>
25+
<TabPanel className={['panel', 'ReactTabs__TabPanel']} />
26+
</Tabs>
27+
```
28+
29+
- `selectedIndex` now enables controlled mode, which disables internal management of the active tab. If you were using `selectedIndex` to set the initial displayed tab use `defaultIndex`
30+
- No styles do get added by default anymore. If you want to use the default styles you need to add them yourself. See README.
31+
32+
#### New Features
33+
34+
- `selectedTabPanelClassName` was added to add `<Tabs />` to change the class name of the current selected TabPanel
35+
- `defaultIndex` was added to set the initial displayed tab
36+
37+
#### Bug Fixes
38+
39+
-
40+
41+
#### Internal
42+
43+
- Refactor components to use native classes
44+
- Refactor to not use react-dom
45+
346
### 0.8.3 (Apr 19, 2017)
447

548
- Fix deprecation warnings with react 15.5

0 commit comments

Comments
 (0)