An open source design system that's fully customizable and agent ready
TypeScript
docs(Layout): containerCorners' header says the corner variables ship in the CSS (#10701)
Cindy Zhang3165c2fb34d4
diff --git a/.changeset/container-corners-header.md b/.changeset/container-corners-header.mdnew file mode 100644index 0000000000..d63c0480b0--- /dev/null+++ b/.changeset/container-corners-header.md@@ -0,0 +1,7 @@+---+'@astryxdesign/core': patch+---++[docs] The source header of `Layout/containerCorners.stylex.ts` (shipped in the package) now says that the `--container-corner-*` variables Card and Dialog set are in `astryx.css`, undocumented, and read only by Table and List; it had said they stay out of public API.++@cixzhangdiff --git a/packages/core/src/Layout/containerCorners.stylex.ts b/packages/core/src/Layout/containerCorners.stylex.tsindex 7951aa3ed4..6026aafb95 100644--- a/packages/core/src/Layout/containerCorners.stylex.ts+++ b/packages/core/src/Layout/containerCorners.stylex.ts@@ -6,14 +6,17 @@* @output containerCornerStyles: the corner publication rounded padding* publishers share* @position Layout utility beside container(). Internal: the package does not- * export this module, so the corner variables stay out of public API.+ * export `containerCornerStyles`. The `--container-corner-*` variables it+ * sets are in the shipped CSS, but no API documents them; only Table and+ * List read them.*/import * as stylex from '@stylexjs/stylex';/**- * Corner publication for a rounded padding publisher (Card, Dialog). The host sets `--_container-corner-block-start` and- * `--_container-corner-block-end` to the radius at each block edge.+ * Corner publication for a rounded padding publisher (Card, Dialog). The host+ * sets `--_container-corner-block-start` and `--_container-corner-block-end` to+ * the radius at each block edge.** A corner goes only to the host's first or last child when that child reads* corners (it carries `data-container-corner`). A reader deeper inside could