Skip to content

Commit 0bb643b

Browse files
authored
Merge pull request #43 from bootstrap-styled/dev
Dev
2 parents 937a599 + 0973fc2 commit 0bb643b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/tests/transition.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ describe('bootstrap transition mixins', () => {
88
const css = getTransitionUtilities(enableTransitions, 'all .2s ease-in-out', 'height .35s ease');
99
expect(css).not.toContain('undefined');
1010
expect(css).not.toContain('null');
11-
expect(fromJS({ css }).hashCode()).toEqual(6006592);
11+
expect(fromJS({ css }).hashCode()).toEqual(760045004);
1212
});
1313
it('should have parameters', () => {
1414
const css = getTransitionUtilities();
1515
expect(css).not.toContain('undefined');
1616
expect(css).not.toContain('null');
17-
expect(fromJS({ css }).hashCode()).toEqual(419397045);
17+
expect(fromJS({ css }).hashCode()).toEqual(-486265482);
1818
});
1919
});
2020
describe('fade', () => {
@@ -36,17 +36,17 @@ describe('bootstrap transition mixins', () => {
3636
describe('collapse', () => {
3737
it('should return a css with defaultProps', () => {
3838
const css = collapse();
39-
expect(fromJS({ css }).hashCode()).toEqual(330977907);
39+
expect(fromJS({ css }).hashCode()).toEqual(204352853);
4040
});
4141
it('should return a css with transition', () => {
4242
const enableTransitions = true;
4343
const css = collapse(enableTransitions, 'height .35s ease');
44-
expect(fromJS({ css }).hashCode()).toEqual(330977907);
44+
expect(fromJS({ css }).hashCode()).toEqual(204352853);
4545
});
4646
it('should return a css without transition', () => {
4747
const enableTransitions = false;
4848
const css = collapse(enableTransitions, 'height .35s ease');
49-
expect(fromJS({ css }).hashCode()).toEqual(1058176073);
49+
expect(fromJS({ css }).hashCode()).toEqual(-987798304);
5050
});
5151
});
5252
describe('getReactTransition', () => {

src/transition.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,26 @@ export function fade(enableTransitions = defaultProps['$enable-transitions'], tr
3434

3535
export function collapse(enableTransitions = defaultProps['$enable-transitions'], transitionCollapse = defaultProps['$transition-collapse']) {
3636
return `
37-
.collapse {
37+
&.collapse, .collapse {
3838
display: none;
3939
&.show {
4040
display: block;
4141
}
4242
}
4343
44-
tr {
44+
tr&, tr {
4545
&.collapse.show {
4646
display: table-row;
4747
}
4848
}
4949
50-
tbody {
50+
tbody&, tbody {
5151
&.collapse.show {
5252
display: table-row-group;
5353
}
5454
}
5555
56-
.collapsing {
56+
&.collapsing, .collapsing {
5757
position: relative;
5858
height: 0;
5959
overflow: hidden;

0 commit comments

Comments
 (0)