diff --git a/packages/components/src/modal/aria-helper.ts b/packages/components/src/modal/aria-helper.ts index 8d554a16521f99..0c059baf713696 100644 --- a/packages/components/src/modal/aria-helper.ts +++ b/packages/components/src/modal/aria-helper.ts @@ -67,14 +67,4 @@ export function unmodalize() { for ( const element of hiddenElements ) { element.removeAttribute( 'inert' ); } - - // Hacks around a Chromium bug where it may fail to restore a region to the - // accessibility tree after an ancestor had the `inert` attribute removed. - // The bug seems like a variation of this: https://crbug.com/1354313 - // This workaround doesn't have to be a custom property. It also seems to - // not have to be done each invocation but it's inexpensive and ensures - // some other code didn't remove it. - document - .querySelectorAll< HTMLElement >( '[role=region]' ) - .forEach( ( region ) => region.style.setProperty( '--∞', '8' ) ); }