-
{message}
-
+
+
{successMessage}
+
+
+
+ Proceed
+
+
+
);
}
-
-const showAlert = (message) => {
- uiDialogService.show({
- id: 'alert-dialog',
- title: 'Alert',
- content: AlertDialog,
- contentProps: { message },
- });
-};
-
```
+**2. Call `uiDialogService.show` with the new component.**
+
+The call to show the dialog is now much simpler. You pass the component itself to the `content` property and any necessary data through `contentProps`.
+
+```javascript
+// After: Calling the service
+const showCompletionDialog = (successMessage) => {
+ uiDialogService.show({
+ id: 'my-complex-dialog',
+ title: 'Action Completed',
+ content: MyCompletionDialog,
+ contentProps: {
+ successMessage,
+ },
+ });
+};
+```
---
diff --git a/platform/docs/docs/migration-guide/3p9-to-3p10/3-UI/9-Migration-3p10-ModalService.md b/platform/docs/docs/migration-guide/3p9-to-3p10/3-UI/9-Migration-3p10-ModalService.md
index 2bef21bc2..09746de95 100644
--- a/platform/docs/docs/migration-guide/3p9-to-3p10/3-UI/9-Migration-3p10-ModalService.md
+++ b/platform/docs/docs/migration-guide/3p9-to-3p10/3-UI/9-Migration-3p10-ModalService.md
@@ -36,6 +36,17 @@ summary: Migration guide for the uiModalService in OHIF 3.10, covering props tha
| `closeButton` | The component now manages modal closing internally. If you need a close button, you can add one, perhaps by checking out the `FooterActions` component. |
+### Frequently Asked Questions
+
+**Q: Why did my dialog's background color change?**
+
+A: This can happen if you were previously setting the background color on the dialog's content directly. With the new API, the dialog's content is wrapped in a container. You should now pass any background or text color classes using the `containerClassName` property.
+
+For example:
+```diff
+- containerClassName: 'w-[70%] max-w-[900px]',
++ containerClassName: 'w-[70%] max-w-[900px] bg-primary-dark text-foreground',
+```
**Migration Steps:**
@@ -103,3 +114,60 @@ Previously, you had to pass in the `onClose` as `hide` function automatically ad
+ },
+ });
```
+
+6. **Update Footer Action Buttons:**
+
+ Previously, footer buttons might have been implemented using generic `