From b16d37953dd2e89853ca2b15a700170fc69cb26b Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 19 Oct 2023 12:06:05 -0400 Subject: [PATCH] Use `line_height` in `z_index` stories --- crates/storybook2/src/stories/z_index.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/storybook2/src/stories/z_index.rs b/crates/storybook2/src/stories/z_index.rs index deb6560eac5cac209f19567ae1218233882200c5..d729b75c2a54fdb58bb2f22dd8f0444fdd195056 100644 --- a/crates/storybook2/src/stories/z_index.rs +++ b/crates/storybook2/src/stories/z_index.rs @@ -72,8 +72,7 @@ trait Styles: Styled + Sized { self.bg(rgb::(0xe5e8fc)) .border_5() .border_color(rgb::(0x112382)) - // HACK: Simulate `line-height: 55px`. - .pt(px(16.)) + .line_height(px(55.)) // HACK: Simulate `text-align: center`. .pl(px(24.)) } @@ -119,8 +118,7 @@ impl ZIndexExample { .text_color(rgb::(0x000000)) .border_5() .border_color(rgb::(0xe3e0a1)) - // HACK: Simulate `line-height: 215px`. - .pt(px(100.)) + .line_height(px(215.)) // HACK: Simulate `text-align: center`. .pl(px(24.)) .z_index(self.z_index)