[July 2024/11.1] Remove tua-body-scroll-lock in favor of a CSS :has()

Created on 20 September 2023, 12 months ago
Updated 22 July 2024, about 2 months ago

Problem/Motivation

In 🐛 Disable body-level scrolling when a dialog is open as a modal Fixed we added a new JS vendor asset for tua-body-scroll-lock however this is possible with CSS in modern browsers - see https://codepen.io/larowlan/pen/QWzMzgo
Firefox does not yet support `:has` so we need a slight polyfill, in place of the code in 🐛 Disable body-level scrolling when a dialog is open as a modal Fixed where we call bodyScrollLock.lock and bodyScrollLock.unlock we can just place class on the body element and use that to apply the overflow: clip

Steps to reproduce

Proposed resolution

Remove tua-body-scroll-lock before we get to a tagged release of 10.2 in favour of a CSS solution.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs review

Version

11.0 🔥

Component
Javascript 

Last updated 1 day ago

Created by

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024