Conversation
Modal positioning is affected by its parent elements, so to make it render correctly, vue-simple-portal moves rendered modal html to the bottom of the page.
akmadian
left a comment
There was a problem hiding this comment.
I'm not thrilled about adding a package, I'd like to see if there's a way to address this without the use of a package. If there isn't, or it's a deceptively difficult issue, this looks good to me :) I'm going to approve this, but I'd like you to see if there's an alternative to using a package before merging.
I didn't like adding a package, too, so I tried several ways of handling it today:
At the moment, I will merge this PR with the new package, and changing the position of footer (it's currently inside |
Modal positioning is affected by its parent elements, so to make it render correctly, vue-simple-portal moves rendered modal html to the bottom of the page.
Fixes
Fixes #165 by @obulat and #159 by @SaurabhAgarwala
Description
Currently, modals are rendered as child elements of help component, which makes them use styling of the parent elements. Because of this, various positioning and z-index problems arise, including the issues mentioned in #165:
select ::after element is not clickable because it's underneath another element. So, we cannot select a language for the site.
footer text is visible through the modal.
VueSimplePortal enables us to render the modal html to an element at the bottom of the page, outside other parent elements, and solves these issues.
Screenshots
Checklist
Update index.md).masterbranch of the repository.visible errors.
Developer Certificate of Origin
Developer Certificate of Origin