From bbe322b4f7a7a7dcfb2fe27f79595cdff2f9d52d Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 25 Oct 2026 21:28:30 -0400 Subject: [PATCH] fix(sonar): non-blocking font-display in showcase; extract replace_trigger Switch the showcase @font-face rules from font-display: block to swap (css:S9441). Move the per-trigger body of set_field_actions into replace_trigger so the widget loop stays under the cognitive-complexity limit (rust:S3776). Branch order and error paths are unchanged. --- assets/demo/showcase.html | 42 +++++++++++------------ crates/forms/src/actions.rs | 67 +++++++++++++++++++++++-------------- 2 files changed, 63 insertions(+), 46 deletions(-) diff --git a/assets/demo/showcase.html b/assets/demo/showcase.html index b26f24565a..3b14ea3b47 100644 --- a/assets/demo/showcase.html +++ b/assets/demo/showcase.html @@ -14,27 +14,27 @@ (highlight, sticky note, stamp, ...), so annotation geometry follows the layout. -->