SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
12 stars 1 forks source link

chore(demo): remove scrolling when the dialog is open #145

Closed jboix closed 8 months ago

jboix commented 8 months ago

Description

Modifies the behavior of the dialog in the demo by preventing background from being scrollable when the dialog is open.

Changes made

Forces the overflow-y style of the document.documentElement to be hidden when the dialog is opened, and restores it to scroll when the dialog is closed.

github-actions[bot] commented 8 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.37% 482/490
🟒 Branches 93.44% 228/244
🟒 Functions 100% 136/136
🟒 Lines 99.15% 466/470

Test suite run success

146 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from 1eca0631c753d77c53d649b376573232d5e49f59