Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Collapse] Add orientation and horizontal support #20619

Merged
merged 3 commits into from
Jul 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/material-ui/src/Collapse/Collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const styles = (theme) => ({
height: 'auto',
overflow: 'visible',
'&$horizontal': {
height: 'initial',
width: 'auto',
},
},
Expand All @@ -41,15 +40,15 @@ export const styles = (theme) => ({
display: 'flex',
width: '100%',
'&$horizontal': {
width: 'initial',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width: 'auto',
height: '100%',
},
},
/* Styles applied to the inner wrapper element. */
wrapperInner: {
width: '100%',
'&$horizontal': {
width: 'initial',
width: 'auto',
height: '100%',
},
},
Expand Down