File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,12 @@ export const ExpandableSectionHeader = ({
320320 }
321321 return (
322322 < ExpandableHeaderTextWrapper
323- className = { clsx ( className , wrapperClassName , expanded && styles . expanded ) }
323+ className = { clsx (
324+ className ,
325+ wrapperClassName ,
326+ expanded && styles . expanded ,
327+ ! expanded && ( ! headerActions || headerDescription ) && styles [ 'wrapper-not-expanded-without-actions' ]
328+ ) }
324329 descriptionId = { descriptionId }
325330 headerDescription = { headerDescription }
326331 headerCounter = { headerCounter }
Original file line number Diff line number Diff line change @@ -138,6 +138,11 @@ $icon-total-space-medium: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{
138138 // Equal top and bottom padding so standalone header has vertical symmetry.
139139 padding-block-end : awsui .$space-container-header-top ;
140140 }
141+
142+ & .wrapper-not-expanded-without-actions {
143+ padding-block-end : calc (#{awsui .$space-container-header-top } + #{awsui .$space-scaled-xxs } );
144+ }
145+
141146 & .header-deprecated {
142147 padding-inline-start : container .$header-padding-horizontal ;
143148 }
You can’t perform that action at this time.
0 commit comments