import { ReactElement } from 'react'; import { ShadowStyleProps } from '../types/react/ShadowStyleProps'; /** * Injects CSS text into the ShadowRoot that surrounds it. * * Replaces the per-widget DrawerContentStyles components (identical in the * alerts and unacknowledged-bulletins widgets). Renders a hidden anchor, finds * the enclosing ShadowRoot via its root node (falling back to * `fallbackHostSelector` for content portaled elsewhere), and appends/updates a * single `