From 9171278788274c9dc85a0c3e11f913424cbda43d Mon Sep 17 00:00:00 2001 From: Joen A <1204802+jasmussen@users.noreply.github.com> Date: Tue, 2 Aug 2022 14:59:41 +0200 Subject: [PATCH] Try: Tab style subpixel fix. (#42892) --- packages/components/src/panel/style.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/components/src/panel/style.scss b/packages/components/src/panel/style.scss index 890a72c6add48..500e5e6fd1a79 100644 --- a/packages/components/src/panel/style.scss +++ b/packages/components/src/panel/style.scss @@ -35,9 +35,12 @@ justify-content: space-between; align-items: center; padding: 0 $grid-unit-20; - height: $grid-unit-60; border-bottom: $border-width solid $gray-300; + // This helps ensure the correct panel height, including the border, avoiding subpixel rounding issues. + box-sizing: content-box; + height: $grid-unit-60 - $border-width; + h2 { margin: 0; font-size: inherit;