refactor(dialog)!: remove deprecated MessageDialogOptions.okLabel (#3612)

* refactor(dialog)!: remove deprecated MessageDialogOptions.okLabel

Use `buttons: { ok: 'label' }` instead. `ConfirmDialogOptions` (used by
`ask` and `confirm`) still accepts `okLabel` and `cancelLabel`.

* Apply suggestion from @amrbashir

---------

Co-authored-by: Amr Bashir <github@amrbashir.me>
This commit is contained in:
Lucas Fernandes Nogueira
2026-09-22 06:07:16 -03:00
committed by GitHub
co-authored by Amr Bashir
parent 1a43e4701d
commit b2d7c387ef
3 changed files with 8 additions and 14 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"dialog-js": major
"dialog": major
---
**Breaking:** Removed the deprecated `okLabel` option of `MessageDialogOptions`. Use `buttons: { ok: 'label' }` instead. `ConfirmDialogOptions` (used by `ask` and `confirm`) still accepts `okLabel` and `cancelLabel`.