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 #17400] Add tests about padding restoration #17536

Merged
merged 1 commit into from
Oct 28, 2016
Merged

[Fix #17400] Add tests about padding restoration #17536

merged 1 commit into from
Oct 28, 2016

Conversation

Johann-S
Copy link
Member

@Johann-S Johann-S commented Sep 9, 2015

Hi,

It's a fix a for #17400
I added several tests to check :

  • If a padding-right is applied when modal is taller than viewport
  • If padding-right is removed after that

@Johann-S
Copy link
Member Author

PING @cvrebert
Sorry if it's not you who can review but I don't know which one of the Bootstrap team I can ping

@cvrebert cvrebert added this to the v4.0.0-alpha.2 milestone Oct 9, 2015
@cvrebert cvrebert self-assigned this Oct 9, 2015
@mdo mdo modified the milestones: v4.0.0-alpha.2, v4.0.0-alpha.3 Dec 8, 2015
@mdo mdo modified the milestones: v4.0.0-alpha.3, v4.0.0-alpha.4 May 8, 2016
@mdo
Copy link
Member

mdo commented Oct 10, 2016

Any recent JS contributors want to review this? Added tests would be rad!

/cc @bardiharborow @Johann-S @cvrebert

@Johann-S
Copy link
Member Author

It's my PR so I'm not sure I'm the good one to review my own PR 😄

@bardiharborow
Copy link
Member

@Johann-S, why have you used all three classes separated by commas ($('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed'). You should only need one selector, or am I misunderstanding?

@Johann-S
Copy link
Member Author

Johann-S commented Oct 11, 2016

Yes you're right I can change that to : $('.navbar-fixed-top.navbar-fixed-bottom.is-fixed')

@mdo mdo modified the milestones: v4.0.0-alpha.5, v4.0.0-alpha.6 Oct 19, 2016
@bardiharborow
Copy link
Member

@Johann-S, I actually meant change it to $('.navbar') and add .navbar to the div, which I believe it should have anyway.

@Johann-S
Copy link
Member Author

Johann-S commented Oct 20, 2016

Sorry I made this in 2015 so it's a bit difficult for me to dig in 😄

I chose this selector because of : https://github.com/twbs/bootstrap/blob/v4-dev/js/src/modal.js#L70 and https://github.com/twbs/bootstrap/blob/v4-dev/js/src/modal.js#L419-L422

So if it's not a fixed navbar they aren't any padding added to the body.

For information theses tests are for this PR : #17457

@mdo
Copy link
Member

mdo commented Oct 28, 2016

Sorry I made this in 2015

Might how time flies! 😅

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

Successfully merging this pull request may close these issues.

None yet

4 participants