From a6431341e8cd8713a2472b42f2a663a42cfb18bd Mon Sep 17 00:00:00 2001 From: "manuel.carrera" Date: Fri, 6 Dec 2024 13:41:32 -0700 Subject: [PATCH] fix: Add info to upgrade guide --- modules/docs/mdx/11.0-UPGRADE-GUIDE.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/docs/mdx/11.0-UPGRADE-GUIDE.mdx b/modules/docs/mdx/11.0-UPGRADE-GUIDE.mdx index 19a4d17927..798a99a022 100644 --- a/modules/docs/mdx/11.0-UPGRADE-GUIDE.mdx +++ b/modules/docs/mdx/11.0-UPGRADE-GUIDE.mdx @@ -51,7 +51,9 @@ A note to the reader: - [Styling API and CSS Tokens](#styling-api-and-css-tokens) - [CountBadge](#count-badge) - [Form Field Preview](#form-field-preview) + - [Graphic](#graphic) - [Icons](#icons) + - [Image](#image) - [Status Indicator (Preview)](#status-indicator-preview) - [Table](#table) - [Text](#text) @@ -636,6 +638,12 @@ to check your logic to make sure it sets the appropaite value to the prop. > **Note:** If you use your own custom `input` you will need to handle the styling for error and > alert states. +### Graphic + +**PR:** [#3062](https://github.com/Workday/canvas-kit/pull/3062) + +We've updated `Graphic` and its `src` prop to accept a `string` value to support images loaded from a CDN or SAS. The previous API is still supported. + ### Icons
@@ -809,6 +817,13 @@ const MyComponent = StyledRadioButton('div')({ ; ``` +### Image + +**PR:** [#3062](https://github.com/Workday/canvas-kit/pull/3062) + +We've added a new `Image` component under the `@workday/canvas-kit-react/icon` package. This component renders an `img` element and is meant to be used when you need more control over the image attributes like aspect ratio or object fit. + + ### Status Indicator (Preview)