From ddfdf22507285a45bdb5f7c32fbea5fb3b23e4af Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Wed, 18 Nov 2026 16:25:21 +0000 Subject: [PATCH] rc-chrome-w6: the named-length story shows on the registered NumberField card NumberField> has no registration; the story keeps its named-or-length field and files under NumberField<'static> (S-L185). --- crates/ui-widgets/src/text/number/stories.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ui-widgets/src/text/number/stories.rs b/crates/ui-widgets/src/text/number/stories.rs index 0fcc29d42..95e2c183d 100644 --- a/crates/ui-widgets/src/text/number/stories.rs +++ b/crates/ui-widgets/src/text/number/stories.rs @@ -169,8 +169,10 @@ impl NumberName for LengthName { } } -/// A named-or-length field: "Auto" is a name, and the lengths are stored in points and shown in inches. -#[story(NumberField<'static, NamedOr>, covers = [], drive = Drive::Never)] +/// A named-or-length field: "Auto" is a name, and the lengths are stored in points and shown in inches. It is a story +/// of the registered `NumberField` card: the named instantiation shares its parts, style and value cases, and a +/// registration of its own would need a full set of state stories for one builder. +#[story(NumberField<'static>, covers = [], drive = Drive::Never)] fn number_field_named_length(ui: &mut Ui, data: &mut StoryData) -> StoryOutput { let presets = [Entry::new(NumberPick::Choice(0), "Auto")]; let lengths = LengthUnits::new(UnitKind::Points, UnitKind::Inches, 72.0);