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

Fix modal overflow style nesting (#26742) #26743

Merged
merged 1 commit into from Jul 20, 2018
Merged

Conversation

jdanil
Copy link
Contributor

@jdanil jdanil commented Jun 22, 2018

Nest .modal styling directly under .modal-open to avoid issues when bootstrap is nested.

Fixes #26742.

Nest `.modal` styling directly under `.modal-open`
to avoid issues when bootstrap is nested.
@mdo mdo added this to Inbox in v4.1.3 via automation Jun 23, 2018
Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

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

Thanks, I'll tee this up for v4.1.3.

@mdo mdo moved this from Inbox to Needs review in v4.1.3 Jul 16, 2018
@mdo mdo merged commit c04d60b into twbs:v4-dev Jul 20, 2018
v4.1.3 automation moved this from Needs review to Shipped Jul 20, 2018
@mdo mdo mentioned this pull request Jul 20, 2018
@ysds
Copy link
Member

ysds commented Aug 24, 2018

This PR is not good enough If bootstrap supports a usage like #26742:

.app {
  @import '~bootstrap/scss/bootstrap';
}

The current SCSS:
https://github.com/twbs/bootstrap/pull/26743/files#diff-e1cc18729da61131b91b425ceaeaafa1L44

 .modal-dialog {
   ...
   .modal.fade & {
     ...
   }
   .modal.show & {
     ...
   }
 }

will be compiled:

.modal.fade .app .modal-dialog {
  ...
}
.modal.show .app .modal-dialog {
  ...
}

There are still some similar code in the other components. e.g.:

.show > &.dropdown-toggle {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v4.1.3
  
Shipped
Development

Successfully merging this pull request may close these issues.

None yet

4 participants