Skip to content

Commit

Permalink
Upgrade to alpha6
Browse files Browse the repository at this point in the history
Rename in => show
  • Loading branch information
Damian Mooyman committed Aug 10, 2017
1 parent f30cc47 commit a8857c3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class Collapse extends React.Component {
className={classNames(className, classes)}
exitedClassName="collapse"
exitingClassName="collapsing"
enteredClassName="collapse in"
enteredClassName="collapse show"
enteringClassName="collapsing"
onEnter={handleEnter}
onEntering={handleEntering}
Expand Down
4 changes: 2 additions & 2 deletions src/Fade.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class Fade extends React.Component {
<Transition
{...this.props}
className={classNames(this.props.className, 'fade')}
enteredClassName="in"
enteringClassName="in"
enteredClassName="show"
enteringClassName="show"
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class Modal extends React.Component {
const [baseModalProps, dialogProps] =
splitComponentProps(props, BaseModal);

const inClassName = show && !animation && 'in';
const inClassName = show && !animation && 'show';

return (
<BaseModal
Expand Down
2 changes: 1 addition & 1 deletion src/Overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Overlay extends React.Component {

if (!transition) {
child = cloneElement(children, {
className: classNames(children.props.className, 'in'),
className: classNames(children.props.className, 'show'),
});
} else {
child = children;
Expand Down
2 changes: 1 addition & 1 deletion test/CollapseSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('<Collapse>', () => {
let node = ReactDOM.findDOMNode(instance);

function onEntered() {
assert.equal(node.className, 'collapse in');
assert.equal(node.className, 'collapse show');
done();
}

Expand Down
8 changes: 4 additions & 4 deletions test/FadeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ describe('Fade', () => {

});

it('Should add "in" class when entering', done => {
it('Should add "show" class when entering', done => {
instance = ReactTestUtils.renderIntoDocument(
<Component>Panel content</Component>
);

function onEntering() {
assert.equal(ReactDOM.findDOMNode(instance).className, 'fade in');
assert.equal(ReactDOM.findDOMNode(instance).className, 'fade show');
done();
}

Expand All @@ -65,7 +65,7 @@ describe('Fade', () => {
instance.setState({ in: true, onEntering });
});

it('Should remove "in" class when exiting', done => {
it('Should remove "show" class when exiting', done => {
instance = ReactTestUtils.renderIntoDocument(
<Component in>Panel content</Component>
);
Expand All @@ -76,7 +76,7 @@ describe('Fade', () => {
}

assert.equal(
ReactDOM.findDOMNode(instance).className, 'fade in');
ReactDOM.findDOMNode(instance).className, 'fade show');

instance.setState({ in: false, onExiting });
});
Expand Down

0 comments on commit a8857c3

Please sign in to comment.