diff --git a/crates/ui-widgets/src/buttons/button.rs b/crates/ui-widgets/src/buttons/button.rs index 9609fa8e19..6351970e83 100644 --- a/crates/ui-widgets/src/buttons/button.rs +++ b/crates/ui-widgets/src/buttons/button.rs @@ -7,11 +7,11 @@ use crate::contract::{ }; use crate::display::{ChordWrite, DisplayWords, Kbd, Picture, Spinner}; use crate::list::ThumbAspect; -use crate::primitives::{HAlign, IconSpec, PaintShape}; +use crate::primitives::{HAlign, IconSpec, PaintShape, Wrap}; use crate::runtime::commands::{CommandRef, ResolvedCommand}; use crate::runtime::env::Label; use crate::style::{ComponentStyle, DataColor, FocusLook, IconLook, StyleColor, StyleCx, SurfaceLook, TextLook, TypeRole}; -use craft_behavior::{Insets, Metrics, PartKey, PointerButton, PressPhase, Sense}; +use craft_behavior::{Insets, Metrics, PartKey, PointerButton, PressPhase, Proposal, Sense}; use craft_host::target::Os; use craft_keymap::{Mods, Trigger}; use craft_theme::{ @@ -192,10 +192,14 @@ pub struct Button<'a> { /// that names an item at the reading start). #[prop] align: HAlign, - /// A muted caption-role second line, wrapped under the icon and label. The face grows to fit it. It is the - /// accessible description unless `description` is set. + /// A muted caption under the icon and label of an inline button. It is the accessible description unless + /// `description` is set. #[prop(into)] detail: Option