-
Notifications
You must be signed in to change notification settings - Fork 20
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 the modal component to prevent the page from scrolling behind it when open #805
Conversation
211bb4f
to
315de3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused by this change, I think it could do with some more explanation.
app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss
Show resolved
Hide resolved
app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss
Show resolved
Hide resolved
app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss
Show resolved
Hide resolved
315de3d
to
b4b2d1b
Compare
govuk-frontend v2.8.0 introduces an overflow-y: scroll for govuk-template that needs to be overwritten when the modal opens otherwise the content will scroll behind the modal. alphagov/govuk-frontend#1230
@andysellick are you happy with me to merge this or shall we have a chat about it beforehand? |
@alex-ju thanks for asking. I think I'm happy with this change, although I'm still nervous about the non-isolation aspects of the component as a whole. But, this is something we need, so that's fine. |
@andysellick I share your worry about isolation. It's the only solution I've seen at the moment to deal with the blur effect. I'm looking into removing it if I find a good alternative that doesn't involve 'communicating' with the template. |
The modal dialogue component was updated in alphagov/govuk_publishing_components#805
govuk-frontend v2.8.0 introduces an
overflow-y: scroll
for.govuk-template
that needs to be overwritten when the modal opens otherwise the content will scroll behind the modal. alphagov/govuk-frontend#1230