ui: Update Label component (#24653)
- Standardize style methods - Convert label story to a component preview - update component preview styles Release Notes: - N/A
This commit is contained in:
parent
aab3e0495d
commit
2d71733490
27 changed files with 182 additions and 151 deletions
|
@ -131,7 +131,7 @@ impl Item for ImageView {
|
|||
Label::new(title)
|
||||
.single_line()
|
||||
.color(label_color)
|
||||
.italic(params.preview)
|
||||
.when(params.preview, |this| this.italic())
|
||||
.into_any_element()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue