Skip to content

Commit b7e988a

Browse files
authored
Merge pull request #44 from Automattic/fix/modal-overflow
Add scroll to modal
2 parents f346a2b + 53079e2 commit b7e988a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/system/Dialog/DialogContent.js

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ const DialogMotion = ( { variant, position, ...props } ) => {
133133
padding: 0,
134134
display: 'inline-block',
135135
variant: `dialog.${ variant }`,
136+
overflow: 'auto',
137+
maxHeight: variant === 'modal' ? '90%' : '',
136138
} }
137139
/>
138140
);

0 commit comments

Comments
 (0)