diff --git a/crates/core/src/field.rs b/crates/core/src/field.rs index a7c6741..607b768 100644 --- a/crates/core/src/field.rs +++ b/crates/core/src/field.rs @@ -99,7 +99,12 @@ impl RenderOnce for Field { let id = id.clone(); move || format!("{id}-label") }) - .typeset(TextRole::Headline, cx) + .when(self.description.is_some(), |title| { + title.typeset(TextRole::Headline, cx) + }) + .when(self.description.is_none(), |title| { + title.typeset(TextRole::Callout, cx) + }) .child(self.label.clone()); let control = h_flex()