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;