Skip to content

Commit

Permalink
docs(v10): improves docs of Modal migration
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Jun 8, 2023
1 parent dd2e8ed commit 7a5f2da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,10 @@ The Anchor was moved from `/elements` to `/components`.

### [Modal](/uilib/components/modal), [Dialog](/uilib/components/dialog) and [Drawer](/uilib/components/drawer)

1.`closeButtonAttributes` of Modal, Dialog, and Drawer is deprecated and no longer supported.
1. `closeButtonAttributes` of Modal, Dialog, and Drawer is deprecated and no longer supported.

2. Modal's `mode` property is now deprecated and removed.
In earlier versions, the `mode` property defaulted to `dialog`. So if you've used `<Modal />` without the `mode` property, which would default to `mode="dialog"`, please convert from `<Modal />` to `<Dialog />` as of v10.
`<Modal />` now behaves as `<Modal mode="custom" />` did previously.

When you convert from `<Modal mode="custom" />` simply change to `<Modal />`.
Expand Down

0 comments on commit 7a5f2da

Please sign in to comment.