Foundation-sites: [Reveal] Opening modal create additional scrollbar to body element in Foundation v6.4.4-rc1 (doesn't happen in v6.4.3)

Created on 27 Dec 2017  路  10Comments  路  Source: foundation/foundation-sites

How to reproduce this bug:

  1. Create a Reveal component normally (code from docs also applicable)
  2. Open the modal

What should happen:

Modal open normally

What happened instead:

Modal open and add 2 scrollbars to the body

Browser(s) and Device(s) tested on:

Chrome Version 63.0.3239.84 and Firefox Version 56.0 (probably all browser)

Foundation Version(s) you are using:

6.4.4-rc1 (the issue doesn't exist on 6.4.3)

Test case link:

https://codepen.io/lukeyouell/pen/VrGvQP

bug

PR open Reveal 馃悰bug

Most helpful comment

Don't worry, it can wait. And thank you.

All 10 comments

I cannot reproduce it on Firefox & Chrome on macOS, but I can reproduce it on Windows.
Also, i have an other bug for Firefox on macOS: the gradient background disapear when the modal is open.

This comes from html.is-reveal-open and .reveal-overlay that both have overflow-y: scroll. So a scrollbar is showed on these two elements even if it is not necessary.

However, I seen there was way more complicated issues on this before, like: https://github.com/zurb/foundation-sites/pull/10583. So if the easy solution would be to replace overflow: scroll by overflow: auto, I don't think this would be the right thing to do.

@isapir Could you give me some help there ?

For the background bug on Firefox, see https://github.com/zurb/foundation-sites/issues/10791

@ncoden I don't remember the details and have no time to look deep into this, but given the information that you already know, why not simply add:

.reveal-overlay {
  overflow: inherit;
}

See https://codepen.io/isapir/pen/EoWjdb

I am afraid on the simply word there. The PR you made should have fixed this bug, and I don't understand everything in it. But in the worst case I'll go the the __too obvious__ idea of overflow: auto.

My tests showed that it did fix the issue, but there are too many factors here (e.g. other patches by other developers) and I really do not remember the details.

I will try to look into it at a later time, but can't ATM.

Don't worry, it can wait. And thank you.

Do we need some more testing here?

poke @isapir

See #11065

Was this page helpful?
0 / 5 - 0 ratings