From 4fe415f8a345350ca0da6cc9768d7abbc8fb936f Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 14 Jun 2021 17:30:36 +0200 Subject: [PATCH] Update Card context explainer in Markdown files --- packages/components/src/card/card-body/README.md | 2 +- packages/components/src/card/card-footer/README.md | 2 +- packages/components/src/card/card-header/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/src/card/card-body/README.md b/packages/components/src/card/card-body/README.md index 369036cdbc078..00ebaa8648497 100644 --- a/packages/components/src/card/card-body/README.md +++ b/packages/components/src/card/card-body/README.md @@ -16,7 +16,7 @@ const Example = () => ( ## Props -Note: This component is connected to [`Card`'s Context](/packages/componnents/src/card/card/README.md#context). Passing the `size` prop directly to this component will override the value derived from context. +Note: This component is connected to [`Card`'s Context](/packages/componnents/src/card/card/README.md#context). The value of the `size` prop is derived from the `Card` parent component (if there is one). Setting this prop directly on this component will override any derived values. ### `isScrollable`: `boolean` diff --git a/packages/components/src/card/card-footer/README.md b/packages/components/src/card/card-footer/README.md index db9d1ade519a5..29cf4767df6ab 100644 --- a/packages/components/src/card/card-footer/README.md +++ b/packages/components/src/card/card-footer/README.md @@ -45,7 +45,7 @@ Check out [the documentation](/packages/componnents/src/flex/flex/README.md) on ## Props -Note: This component is connected to [`Card`'s Context](/packages/componnents/src/card/card/README.md#context). Passing the `size` and `isBorderless` props directly to this component will override the value derived from context. +Note: This component is connected to [`Card`'s Context](/packages/componnents/src/card/card/README.md#context). The value of the `size` and `isBorderless` props is derived from the `Card` parent component (if there is one). Setting these props directly on this component will override any derived values. ### `isBorderless`: `boolean` diff --git a/packages/components/src/card/card-header/README.md b/packages/components/src/card/card-header/README.md index d70c57f7d73d6..40f1f4d9bec57 100644 --- a/packages/components/src/card/card-header/README.md +++ b/packages/components/src/card/card-header/README.md @@ -17,7 +17,7 @@ const Example = () => ( ## Props -Note: This component is connected to [`Card`'s Context](/packages/componnents/src/card/card/README.md#context). Passing the `size` and `isBorderless` props directly to this component will override the value derived from context. +Note: This component is connected to [`Card`'s Context](/packages/componnents/src/card/card/README.md#context). The value of the `size` and `isBorderless` props is derived from the `Card` parent component (if there is one). Setting these props directly on this component will override any derived values. ### `isBorderless`: `boolean`