feat: add selectable() to Text

This commit is contained in:
Hojjat 2026-05-15 13:38:15 -06:00 committed by Ashley Wulber
parent 347d91f7ea
commit 251254ad51
9 changed files with 442 additions and 19 deletions

View file

@ -179,7 +179,7 @@ where
{
let color = color.map(Into::into);
self.style(move |_theme| Style { color })
self.style(move |_theme| Style { color, ..Style::default() })
}
/// Sets the default style class of the [`Rich`] text.