Carbon: Modal body overflows unexpectedly and scroll bar is not in container

Created on 16 Jul 2019  路  6Comments  路  Source: carbon-design-system/carbon

We recently had a user report that detailed that the modal body overflows unexpectedly, and the resulting scroll bar is also placed in an awkward location:

image

https://slkm7.codesandbox.io/

Can reproduce on latest Chrome.

components bug 馃悰

Most helpful comment

@emyarod Would you agree with swapping width: 75% with padding-right: 25% or a like? Thanks!

All 6 comments

@carbon-design-system/design Seems that modal content currently takes up 3/4 of the modal width, wondering if it makes sense to extend it to 100%. Any thoughts?

Here is the design I got from Anna wrt to scrolling/focusing the container in the modal. Looks like the content area needs to have padding instead of a margin

@asudoh the content only spans 3/4 of the modal because we have right padding in all of our containers... i.e. the line length never extends the full width of our containers by design... but this is really a rule that applies to the typography, not so much other elements within a modal. For instance, if you had, say, a data table in the modal, it would take up the full width.

Cool thanks @jeanservaas for clarifying!

@emyarod Would you agree with swapping width: 75% with padding-right: 25% or a like? Thanks!

@asudoh yeah I think that's fine

Was this page helpful?
0 / 5 - 0 ratings