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

Modal inside bx--content (Content component) #7885

Closed
1 of 2 tasks
alissa9090 opened this issue Feb 24, 2021 · 0 comments · Fixed by #7891
Closed
1 of 2 tasks

Modal inside bx--content (Content component) #7885

alissa9090 opened this issue Feb 24, 2021 · 0 comments · Fixed by #7891
Assignees

Comments

@alissa9090
Copy link
Contributor

alissa9090 commented Feb 24, 2021

Title line template: [Title]: Brief description

Modal inside bx--content (Content component) is shown incorrectly

What package(s) are you using?

  • carbon-components
  • carbon-components-react ^7.29.0

Detailed description

Modal overlay is broken when its shown inside Content component with scrollable content. Looks like
transform: translate3d(0, 0, 0); from bx--content class is causing it.

Steps to reproduce the issue

  1. Step one
    Create a Button and a Modal inside Content component

  2. Step two
    put some text or other component above Modal so that you have to scroll to reach it.

  3. Step three
    click the Button and show the Modal.

https://codesandbox.io/s/eager-lalande-rq5xy?file=/src/index.js

Additional information

Screenshot 2021-02-24 at 13 15 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants