Skip to content

Commit

Permalink
docs: 📚 improve ui-teaser migration guide (#325)
Browse files Browse the repository at this point in the history
Co-authored-by: Azra Efendic <[email protected]>
  • Loading branch information
azraefendic and Azra Efendic authored Aug 9, 2023
1 parent 4cfe263 commit e1c4e60
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/components/src/docs/Migration/ui-teaser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ The new `sd-teaser` component uses slots to create a more customizable and flexi

The new sd-teaser component introduces two new CSS properties:

`--distribution-media`: The distribution ratio of the media.
`--distribution-media` - The distribution ratio of the media.

`--distribution-content` - The distribution ratio of the content.

`--distribution-content`: The distribution ratio of the content.
This can only be used when the orientation is horizontal. In case there's a requirement to have a fixed value for the media or content, you can override the sd-teaser::part(media) or sd-teaser::part(content) selector by applying a flex-shrink of 0.

```css
Expand All @@ -76,7 +77,4 @@ The following events and methods have been removed from the new teaser component
- `linkClick`
- `onAfterResize`
- `hasLinks`

## 🔀 Updated Methods

The `createLink` method has been removed in the new `sd-teaser` component. You can use the slot system to add links or any other elements to the `sd-teaser`.
- `createLink` - You can use the slot system to add links or any other elements to the `sd-teaser`.

0 comments on commit e1c4e60

Please sign in to comment.