From 4755ceee8171a8e0ef234236f04f903ab7dc6cdc Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 18 Jun 2026 19:24:15 -0400 Subject: [PATCH] feat(centralui): DialogHost ShowAsync custom-content + focus trap/restore + backdrop hook (T33a) --- .../Components/Shared/DialogHost.razor | 53 ++++-- .../Components/Shared/DialogService.cs | 67 ++++++- .../Components/Shared/IDialogService.cs | 65 ++++++- .../wwwroot/js/dialog.js | 63 +++++++ .../Components/App.razor | 1 + .../Design/SchemaLibraryPageTests.cs | 6 + .../Pages/NotificationListsPageTests.cs | 6 + .../NotificationReportDetailModalTests.cs | 6 + .../Pages/NotificationReportPageTests.cs | 6 + .../Pages/QueryStringDrillInTests.cs | 6 + .../Pages/SiteCallsReportPageTests.cs | 6 + .../Shared/DialogHostShowAsyncTests.cs | 176 ++++++++++++++++++ 12 files changed, 438 insertions(+), 23 deletions(-) create mode 100644 src/ZB.MOM.WW.ScadaBridge.CentralUI/wwwroot/js/dialog.js create mode 100644 tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Shared/DialogHostShowAsyncTests.cs diff --git a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/DialogHost.razor b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/DialogHost.razor index 4a0f54d3..8a2ec9e6 100644 --- a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/DialogHost.razor +++ b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/DialogHost.razor @@ -8,14 +8,16 @@ @if (Service is DialogService svc && svc.Current is { } state) { - + @* `sb-modal-backdrop` is a tokenized hook: a separate task attaches the + var-driven background rule to it. No inline style here. *@ +