From a6f78b16f2624f8358a645a582824fcb1456229d Mon Sep 17 00:00:00 2001 From: Jessica Kuelz <15003460+jkuelz@users.noreply.github.com> Date: Tue, 8 Aug 2023 10:26:35 -0700 Subject: [PATCH] fix: Alignment with board component handles --- src/expandable-section/styles.scss | 1 + src/header/internal.tsx | 9 +-------- src/header/styles.scss | 31 +++++++++++++----------------- 3 files changed, 15 insertions(+), 26 deletions(-) diff --git a/src/expandable-section/styles.scss b/src/expandable-section/styles.scss index 05ab0272b1..40e46a8dd9 100644 --- a/src/expandable-section/styles.scss +++ b/src/expandable-section/styles.scss @@ -110,6 +110,7 @@ $icon-total-space-medium: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{ padding-right: container.$header-padding-horizontal; &:not(.wrapper-expanded) { + // Equal top and bottom padding so standalone header has vertical symmetry. padding-bottom: awsui.$space-container-header-top; } &.header-deprecated { diff --git a/src/header/internal.tsx b/src/header/internal.tsx index 3509c9c9dd..21ea90159d 100644 --- a/src/header/internal.tsx +++ b/src/header/internal.tsx @@ -55,14 +55,7 @@ export default function InternalHeader({ ref={__internalRootRef} >