🚚 Rename HeadingDisplay to HeadingSize

This commit is contained in:
Manuel Cillero 2023-11-23 20:29:29 +01:00
parent 3fd05643b3
commit 9f25695298
5 changed files with 36 additions and 36 deletions

View file

@ -85,9 +85,9 @@ impl ThemeTrait for Bulmix {
}
h if Heading::matches_handle(h) => {
if let Some(h) = component_as_mut::<Heading>(component) {
match h.display() {
HeadingDisplay::Subtitle => {
h.replace_classes(h.display().to_string(), "subtitle")
match h.size() {
HeadingSize::Subtitle => {
h.replace_classes(h.size().to_string(), "subtitle")
}
_ => h.add_classes("title"),
};