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

Update for Bootstrap 3.3: render a .modal-backdrop inside of its .modal. #330

Conversation

alloy-d
Copy link

@alloy-d alloy-d commented Jan 7, 2015

In Bootstrap 3.3.0, the .modal-backdrop was moved inside its corresponding .modal. See: twbs/bootstrap#14724

With this, the z-index was removed from the .modal-backdrop, meaning that modal backdrops in React Bootstrap aren't layered properly when used with CSS from Bootstrap >= 3.3.0.

Note: this breaks Modals in Bootstrap < 3.3.0, because the backdrop winds up above the modal content.

What is React Bootstrap's policy for dealing with backwards-incompatible changes like this in Bootstrap itself? If you have a standard-ish way of handling this, I'm happy to update the PR accordingly!

In Bootstrap 3.3.0, the `.modal-backdrop` was
moved inside its corresponding `.modal`.
See: twbs/bootstrap#14724

With this, the `z-index` was removed from the `.modal-backdrop`,
meaning that modal backdrops in React Bootstrap aren't layered properly
when used with CSS from Bootstrap >= 3.3.0.
@mtscout6
Copy link
Member

IMHO This is where SemVer comes in, react-bootstrap should try to stay with the current release of bootstrap and react. If users want backwards compatibility then they should use an older version, with the understanding that only bug fixes may or may not get published. I may note that although Bootstrap failed to bump the major version for a breaking change, that should not mean that we don't.

@mtscout6
Copy link
Member

Looks like this breaks the docs:

Although this is not entirely your fault. I have another change I'd like to bring in, then I'll look at getting that css from npm (I just created #348 for that issue)

@cvrebert
Copy link
Contributor

cvrebert commented Mar 6, 2015

Please be advised that Bootstrap v3.3.4 is going to move the backdrop back outside of the modal again; see twbs/bootstrap#15881

@mtscout6
Copy link
Member

mtscout6 commented Mar 6, 2015

Thanks for the heads up. We'll keep an eye out for its release.

@vinnymac
Copy link
Contributor

Looks like 3.3.4 is out, I have tried it in my project with react-bootstrap and it appears to be working fine now.

@mtscout6
Copy link
Member

Wohoo ... darn

So, with the latest changes I've been making it's really easy to try out the new version of bootstrap. Just npm install [email protected] --save-dev then run npm run docs. Unfortunately the newer version has removed their docs css from the npm module, which I just recently started using...

All said it should be a quick upgrade so long as we figure out that docs css issue.

@mtscout6 mtscout6 closed this in 84b9113 Mar 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants