Liquid Glass Live Region
A content-layer ARIA live region for Liquid Glass that announces dynamic status updates and alerts with neutral readable ink.
Liquid Glass Live Region inherits ARIA live-region semantics from Base Live Region. It stays in the content layer with neutral readable foreground ink and bounded width rather than applying optical glass, preventing glass-on-content distortion and glass-on-glass stacking.
Preview
Section titled “Preview”This preview pairs un-glassed content-layer announcement surfaces with floating prominent and regular Liquid Glass action buttons over a tinted backdrop.
<liquid-glass-live-region-root id="inbox-status">
No unread messages
</liquid-glass-live-region-root>
<liquid-glass-live-region-root id="service-alert">
All systems operational
</liquid-glass-live-region-root>
<script type="module">
import {
AdaptToWebComponent,
setElementProps,
} from '@proto.ui/adapter-web-component';
import { liveRegionRoot } from '@proto.ui/prototypes-liquid-glass/live-region';
AdaptToWebComponent(liveRegionRoot);
const status = document.querySelector('#inbox-status');
const alert = document.querySelector('#service-alert');
setElementProps(status, { politeness: 'polite', atomic: true });
setElementProps(alert, { politeness: 'assertive', atomic: true });
// Update authored text content to trigger a screen-reader announcement.
status.textContent = '1 unread message';
</script>Installation
Section titled “Installation”Liquid Glass Live Region is available from workspace source only and is not currently supported by the CLI. Import liveRegionRoot directly from @proto.ui/prototypes-liquid-glass/live-region:
import { liveRegionRoot } from '@proto.ui/prototypes-liquid-glass/live-region';import { AdaptToReact } from '@proto.ui/adapter-react';import { liveRegionRoot } from '@proto.ui/prototypes-liquid-glass/live-region';
const LiquidGlassLiveRegionRoot = AdaptToReact(liveRegionRoot);
export function StatusAnnouncement({ message }: { message: string }) { return ( <LiquidGlassLiveRegionRoot politeness="polite" atomic> {message} </LiquidGlassLiveRegionRoot> );}politeness="polite"(default): Projectsrole="status"andaria-live="polite"for non-interruptive status updates.politeness="assertive": Projectsrole="alert"andaria-live="assertive"for urgent service alerts or form validation errors.atomic={true}(default): Projectsaria-atomic="true"so the full region is announced; setfalseto announce only changed descendant nodes.
Material Layering & Accessibility
Section titled “Material Layering & Accessibility”Following Apple’s Materials Human Interface Guidelines, Liquid Glass belongs to floating navigation, controls, and overlays rather than underlying content:
- No glass on content or glass-on-glass stacking:
Live Regionapplies onlymin-w-0 max-w-full text-foregroundwith no optical material owner orbackdrop-*tokens. When nested inside a Liquid Glass banner, toast, or sheet, it inherits surrounding vibrancy cleanly without stacking translucent layers. - Concentric geometry & control hierarchy: Pair concentric outer/inner corner radii around content surfaces with a single
prominentLiquid Glass primary action andregularsecondary controls. - Accessibility fallbacks: Under
prefers-reduced-transparency,prefers-contrast: more,prefers-reduced-motion, or forced colors, surrounding Liquid Glass controls transition to high-contrast opaque fallbacks whileLive Regionstays legible with semantic foreground ink and zero extraneous motion.
Examples
Section titled “Examples”Atomic vs. Incremental Updates
Section titled “Atomic vs. Incremental Updates”Compare full-sentence announcements (atomic={true}) with incremental fragment announcements (atomic={false}).
<liquid-glass-live-region-root id="upload-atomic">
Upload progress:
<span id="step-atomic">25% (1 of 4 files)</span>
</liquid-glass-live-region-root>
<liquid-glass-live-region-root id="upload-incremental">
Upload progress:
<span id="step-incremental">25% (1 of 4 files)</span>
</liquid-glass-live-region-root>
<script type="module">
import {
AdaptToWebComponent,
setElementProps,
} from '@proto.ui/adapter-web-component';
import { liveRegionRoot } from '@proto.ui/prototypes-liquid-glass/live-region';
AdaptToWebComponent(liveRegionRoot);
setElementProps(document.querySelector('#upload-atomic'), {
politeness: 'polite',
atomic: true,
});
setElementProps(document.querySelector('#upload-incremental'), {
politeness: 'polite',
atomic: false,
});
</script>Dynamic Politeness Switching
Section titled “Dynamic Politeness Switching”Toggle politeness and atomic on a mounted live region to update its ARIA attributes synchronously while preserving authored child text.
<liquid-glass-live-region-root id="deploy-region">
Release v2.4.1 queued for production deploy
</liquid-glass-live-region-root>
<script type="module">
import {
AdaptToWebComponent,
setElementProps,
} from '@proto.ui/adapter-web-component';
import { liveRegionRoot } from '@proto.ui/prototypes-liquid-glass/live-region';
AdaptToWebComponent(liveRegionRoot);
const region = document.querySelector('#deploy-region');
// Toggle politeness and atomic without replacing authored descendants.
setElementProps(region, {
politeness: 'assertive',
atomic: false,
});
</script>Async Save & Validation Feedback
Section titled “Async Save & Validation Feedback”Combine polite save status and assertive validation feedback in the content layer triggered by floating Liquid Glass controls.
<liquid-glass-live-region-root id="save-status">
All changes saved
</liquid-glass-live-region-root>
<liquid-glass-live-region-root id="form-error">
No validation errors
</liquid-glass-live-region-root>
<script type="module">
import {
AdaptToWebComponent,
setElementProps,
} from '@proto.ui/adapter-web-component';
import { liveRegionRoot } from '@proto.ui/prototypes-liquid-glass/live-region';
AdaptToWebComponent(liveRegionRoot);
const saveStatus = document.querySelector('#save-status');
const formError = document.querySelector('#form-error');
setElementProps(saveStatus, {
politeness: 'polite',
atomic: true,
});
setElementProps(formError, {
politeness: 'assertive',
atomic: true,
});
saveStatus.textContent = 'Draft saved (revision #2)';
formError.textContent =
'Billing email is required before publishing changes.';
</script>Visually Hidden Announcements
Section titled “Visually Hidden Announcements”Wrap Live Region in .sr-only for invisible screen-reader confirmations such as copying an API key or filtering items.
<div class="sr-only">
<liquid-glass-live-region-root
id="sr-announcer"
></liquid-glass-live-region-root>
</div>
<script type="module">
import {
AdaptToWebComponent,
setElementProps,
} from '@proto.ui/adapter-web-component';
import { liveRegionRoot } from '@proto.ui/prototypes-liquid-glass/live-region';
AdaptToWebComponent(liveRegionRoot);
const announcer = document.querySelector('#sr-announcer');
setElementProps(announcer, {
politeness: 'polite',
atomic: true,
});
announcer.textContent = 'API key copied to clipboard';
</script>| Prop | Type | Default |
|---|---|---|
politeness | 'polite' 'assertive' | polite |
atomic | boolean | true |
Root is a content-layer semantic primitive; it declares no material prop and exposes no additional state, events, or methods.