From 7c966d34eb2c7837859805c13864540042b98389 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Fri, 6 Feb 2026 06:56:56 +0000 Subject: [PATCH] Update Card.stories.tsx Signed-off-by: Charles de Dreuille --- .../ui/src/components/Card/Card.stories.tsx | 57 ++++++++----------- 1 file changed, 24 insertions(+), 33 deletions(-) diff --git a/packages/ui/src/components/Card/Card.stories.tsx b/packages/ui/src/components/Card/Card.stories.tsx index d1d6c43327..d51c9ed5b3 100644 --- a/packages/ui/src/components/Card/Card.stories.tsx +++ b/packages/ui/src/components/Card/Card.stories.tsx @@ -208,40 +208,31 @@ export const SurfacesNested = meta.story({ export const SurfacesAutoIncrement = meta.story({ render: args => ( - - - Using surface="auto" automatically increments from the parent surface - level. This makes components more reusable as they don't need to know - their absolute surface level. Notice how each nested Card with - surface="auto" automatically increments: 0 → 1 → 2 → 3 (capped at 3). + + + + On surface 0 + Card auto → 1 + + + + + On surface 1 + Card auto → 2 + + + + + On surface 2 + Card auto → 3 + + + + + On surface 3 + Card auto → 3 (capped) + - - Surface 0 (explicit) - - - Surface auto (becomes 1) - - - - Surface auto (becomes 2) - - - Surface auto (becomes 3) - - - Surface auto (stays 3 - capped) - Capped at max surface level - - - - - - - - - ), });