ui: Implement ParentElement for Banner (#29834)

This PR implements the `ParentElement` trait for the `Banner` component
so that it can use the real children APIs instead of a bespoke one.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2025-05-03 02:36:53 +00:00
committed by GitHub
parent f0515d1c34
commit 7f8e3fd482
3 changed files with 16 additions and 18 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ impl RenderOnce for UsageBanner {
}),
};
Banner::new().severity(severity).children(
Banner::new().severity(severity).child(
h_flex().flex_1().gap_1().child(Label::new(message)).child(
h_flex()
.flex_1()