Skip to content

Commit 8df4dc7

Browse files
committed
Minor grammar improvement in the README.
1 parent 97692ef commit 8df4dc7

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
### v2.0.0 (11 September 2016)
1+
### v2.0.1 (14 September 2016)
2+
3+
* [DOCUMENTATION] Minor grammar improvement in the README.
4+
5+
### v2.0.0 (14 September 2016)
26

37
* [ENHANCEMENT] Add support for IE<=11 (thanks @le0nik) (#22, #23)
48
* [ENHANCEMENT] Provide an `isLeaving` prop on the current child component while it is leaving. (thanks @le0nik)

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ and the new component animated in. During this process:
4242
- The leaving component continues to be rendered as usual with `static` positioning.
4343
- The entering component is positioned on top of the leaving component with `absolute` positioning.
4444
- The height of the container is set to that of the leaving component, and then immediately to that of the
45-
entering component, and the `{animation-name}-height` class is applied to it, if type of `transitionName` is
46-
`String`. If type of `transitionName` is `Object`, `transitionName.height` class will be used without modifications,
47-
if present.
48-
- The leaving component will be passed `isLeaving` prop while transitioning out.
45+
entering component. If the `transitionName` is a `String` the `{animation-name}-height` class name is applied
46+
to it, and if `transitionName` is an `Object` the `transitionName.height` class will be used if present.
47+
- The leaving component will be passed an `isLeaving` prop while transitioning out.
4948

5049
This provides many possibilities for animating the replacement as illustrated in the examples below.
5150

src/ReactCSSTransitionReplace.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ export default class ReactCSSTransitionReplace extends React.Component {
262262

263263

264264
if (height !== null) {
265-
const heightClassName = (typeof transitionName == 'object' && transitionName !== null) ?
266-
transitionName.height || '' :
267-
`${transitionName}-height`;
265+
const heightClassName = (typeof transitionName == 'object' && transitionName !== null)
266+
? transitionName.height || ''
267+
: `${transitionName}-height`;
268268

269269
containerProps.className = `${containerProps.className || ''} ${heightClassName}`;
270270
containerProps.style = {

0 commit comments

Comments
 (0)