Skip to content

now sets klaro-modal-open to body klaro-modal is open - #403

Open
dersimoezdag wants to merge 2 commits into
kiprotect:masterfrom
dersimoezdag:modal-open-class-to-document.body
Open

dersimoezdag wants to merge 2 commits into
kiprotect:masterfrom
dersimoezdag:modal-open-class-to-document.body

Conversation

@dersimoezdag

Copy link
Copy Markdown
Contributor

This enables the user to prevent scrolling in background of the klaro modal.
CSS:

body.modal-open { overflow: hidden; padding-right: var(--scrollbar-width); }

@adewes

adewes commented Nov 9, 2021

Copy link
Copy Markdown
Member

Thanks again, very useful!

@adewes

adewes commented Nov 9, 2021

Copy link
Copy Markdown
Member

I'll have to merge this manually as there are some conflicts.

@dersimoezdag

Copy link
Copy Markdown
Contributor Author

@adewes i've resolved the conflicts :)

@klfman

klfman commented Jun 3, 2022

Copy link
Copy Markdown

Would be happy to see this merged, we discussed about the same feature yesterday

@JeanCarriere

Copy link
Copy Markdown

up

@Jako

Jako commented Mar 7, 2024 •

Copy link
Copy Markdown
Contributor

@adewes this seems not to be merged into the current release. It would be great to see this happen.

Jako added a commit to Jako/klaro-js that referenced this pull request Dec 16, 2025
Jako added a commit to Jako/klaro-js that referenced this pull request Dec 16, 2025
* modal-open-class:
  Rebase kiprotect#403 now sets klaro-modal-open to body klaro-modal is open
Jako added a commit to Jako/klaro-js that referenced this pull request Dec 16, 2025
Jako added a commit to Jako/klaro-js that referenced this pull request Dec 16, 2025
* modal-open-class:
  Rebase kiprotect#403 now sets klaro-modal-open to body klaro-modal is open

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants