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

Created on 20 September 2023, about 1 year ago
Updated 20 September 2024, 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

  • Maintained by
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom @justafish
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance @nod_
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