Open softvision-oana-arbuzov opened 4 years ago
Interesting, thanks for the report. I guess a CSS interop issue, perhaps.
To reproduce.
the modal pop up displays but can't fit the viewport and is not scrollable.
And
.popup-modal {
background-color: #fff;
border-radius: 5px;
height: var(--popup-height-mobile);
left: 50%;
max-height: var(--popup-max-height-mobile);
max-width: 90%;
opacity: 0;
overflow: hidden;
padding: 0;
pointer-events: none;
position: fixed;
top: 50%;
transform: translate(-50%,-50%);
transition: all .3s ease-in-out;
width: 650px;
z-index: 1011;
}
.popup-modal.text {
height: 400px;
width: 590px;
}
which is indeed not very user friendly. This could be fixed with
/* webcompat.css | https://webcompat.com/dist/webcompat.css */
.popup-modal {
/* overflow: hidden; */
overflow: scroll;
}
.popup-modal.text {
/* height: 400px; */
/* width: 590px; */
max-height: 400px;
}
@magsout Do you agree with these changes?
Another way of doing it would be to use flexbox to center horizontally and vertically.
@karlcow yes, I agree with these changes
maybe just:
.popup-modal {
/* overflow: hidden; */
overflow-y: auto; /* is enough */
}
@magsout nope that doesn't work
@karlcow did you test with the max-height
?
I mean
.popup-modal {
/* overflow: hidden; */
overflow-y: auto;
}
.popup-modal.text {
/* height: 400px; */
/* width: 590px; */
max-height: 400px;
}
yup this is working with max-height
, my initial proposal.
yup this is working with max-height, my initial proposal.
Yes, my comment was about overflow
.
overflow: scroll
add a scrollbar every time, while overflow-y: auto
added a scroll when is needed. I only completed your initial proposal:
.popup-modal {
/* overflow: hidden; */
overflow-y: auto;
}
.popup-modal.text {
/* height: 400px; */
/* width: 590px; */
max-height: 400px;
}
URL: https://webcompat.com/issues/new
Browser / Version: Firefox Release 26.0 (18099), Chrome 83.0.4103.88, Safari 12 Operating System: iPod touch iOS 12.4.7 (1136 x 640 pixels (~326 ppi pixel density)
Steps to Reproduce:
Expected Behavior: "Privacy policy" link is available.
Actual Behavior: "Privacy policy" link is not available.
Notes:
Affected area:
Watchers: @softvision-oana-arbuzov @cipriansv