Use normal field labels without descriptions

- Keep description-bearing field labels emphasized.
- Render plain row labels at the normal callout weight.
This commit is contained in:
2026-11-16 18:44:40 +07:00
parent eebe267258
commit bf8de7f6c4
+6 -1
View File
@@ -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()