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
|
@ -738,7 +738,7 @@ impl Item for NotebookEditor {
|
|||
Label::new(title)
|
||||
.single_line()
|
||||
.color(params.text_color())
|
||||
.italic(params.preview)
|
||||
.when(params.preview, |this| this.italic())
|
||||
.into_any_element()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue