Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

chore(core): split two long comments in LayerProvider and ToastViewport (#10244)

Christopher Chedeau332cc3befb29
diff --git a/.changeset/layer-toast-comment-sentences.md b/.changeset/layer-toast-comment-sentences.md
new file mode 100644
index 0000000000..f2bceff843
--- /dev/null
+++ b/.changeset/layer-toast-comment-sentences.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[internal] Two source comments, LayerProvider's inset note and ToastViewport's file header, are split into shorter sentences. Nothing that runs changes.
+
+@vjeux
diff --git a/packages/core/src/Layer/LayerProvider.tsx b/packages/core/src/Layer/LayerProvider.tsx
index a3a9e089b7..3de0e38138 100644
--- a/packages/core/src/Layer/LayerProvider.tsx
+++ b/packages/core/src/Layer/LayerProvider.tsx
@@ -77,11 +77,12 @@ export function LayerProvider({
return <LayerContext value={nestedValue}>{children}</LayerContext>;
}
- // The declared inset reaches anchored layers through context — each layer
- // writes it inline on itself, so a corrective portal cannot escape it — and
- // the toast viewport through the outlet. Nothing resolves placement through
- // the provider (spec:AST-059 FR6). With no inset nothing is written, so a
- // surface with no provider renders as one under the default provider.
+ // The declared inset reaches anchored layers through context. Each layer
+ // writes it inline on itself, so a corrective portal cannot escape it. The
+ // toast viewport gets it through the outlet. Nothing resolves placement
+ // through the provider (spec:AST-059 FR6). With no inset, no layer or toast
+ // viewport gets a layer-inset custom property. A surface with no provider
+ // therefore renders as one under the default provider.
return (
<LayerContext value={contextValue}>
<ToastHostOutlet
diff --git a/packages/core/src/Toast/ToastViewport.tsx b/packages/core/src/Toast/ToastViewport.tsx
index c166e0b62a..dee6b18926 100644
--- a/packages/core/src/Toast/ToastViewport.tsx
+++ b/packages/core/src/Toast/ToastViewport.tsx
@@ -4,9 +4,10 @@
/**
* @file ToastViewport.tsx
- * @input Uses React state/effects, ToastContext, content-provider boundary, useAnnounce, viewport tokens,
- * shared layer text reset, the active modal outlet, the layer toast host
- * registry, and placement-derived motion variables
+ * @input Uses React state and effects, ToastContext, the content-provider
+ * boundary, useAnnounce and viewport tokens. It also uses the shared layer
+ * text reset, the active modal outlet, the layer toast host registry and
+ * placement-derived motion variables
* @output Exports the ToastViewport provider, stack, live announcement dispatch,
* focus handoff, safe-area-aware edge gutters, modal rehosting, and motion context
* @position Core provider/imperative viewport for useToast()