diff --git a/.changeset/nine-fishes-itch.md b/.changeset/nine-fishes-itch.md new file mode 100644 index 00000000000..24dc387eb65 --- /dev/null +++ b/.changeset/nine-fishes-itch.md @@ -0,0 +1,5 @@ +--- +"@itwin/itwinui-react": patch +--- + +Fixed an issue in older Safari versions where visually-hidden styles inside `ProgressRadial` were not being applied. diff --git a/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx b/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx index 8d6e07ebb88..40a85d989f8 100644 --- a/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx +++ b/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx @@ -4,6 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import * as React from 'react'; import * as ReactDOM from 'react-dom'; +import { useLatestRef, useLayoutEffect } from '../hooks/index.js'; const isBrowser = typeof document !== 'undefined'; const supportsDSD = @@ -11,47 +12,16 @@ const supportsDSD = const supportsAdoptedStylesheets = isBrowser && 'adoptedStyleSheets' in Document.prototype; +type ShadowRootProps = { children: React.ReactNode; css?: string }; + /** * Wrapper around `