@@ -228,6 +228,8 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
228
228
}
229
229
230
230
.header {
231
+ $vertical-margin : calc (#{awsui .$space-scaled-xxs } + 1px );
232
+
231
233
inline-size : 100% ;
232
234
margin-block : awsui .$size-vertical-panel-icon-offset ;
233
235
margin-inline : 0 ;
@@ -241,23 +243,24 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
241
243
}
242
244
243
245
& -main-row {
246
+ // Make sure that the panel buttons are always anchored to the block start,
247
+ // even if the main content (before-header slot, header text, actions) wraps into multiple lines.
244
248
align-items : flex-start ;
245
249
}
246
250
251
+ // Area containing the before-header slot, the header text and the actions
247
252
& -main-content {
248
253
flex : auto ;
249
254
flex-direction : row ;
250
255
flex-wrap : wrap ;
251
256
column-gap : awsui .$space-scaled-xs ;
252
- row-gap : awsui .$space-scaled-xxs ;
253
- align-items : center ;
257
+ row-gap : calc (#{awsui .$space-scaled-xxs } + $vertical-margin );
254
258
justify-content : space-between ;
259
+ align-items : center ;
255
260
}
256
261
257
262
& -tag-and-info {
258
- $vertical-margin : calc (#{awsui .$space-scaled-xxs } + 1px );
259
- margin-block-start : $vertical-margin ;
260
- min-block-size : calc (#{awsui .$font-panel-header-line-height } + #{$vertical-margin } );
263
+ min-block-size : calc (#{awsui .$font-panel-header-line-height } + 2 * #{$vertical-margin } );
261
264
// The line height of the header text might not be respected in non-high pixel density screens
262
265
// unless it is set to a smaller value in its parent container.
263
266
line-height : awsui .$line-height-body-s ;
@@ -271,17 +274,18 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
271
274
}
272
275
273
276
& -tag {
274
- $vertical-margin : calc (#{awsui .$space-scaled-xxs } + 1px );
275
277
@include styles .font-panel-header ;
276
- padding-block : 0 ;
277
- padding-inline : 0 ;
278
- margin-inline : 0 ;
279
- margin-block : 0 ;
280
278
& .with-info {
281
279
margin-inline-end : awsui .$space-scaled-xs ;
282
280
}
283
281
}
284
282
283
+ & -text ,
284
+ & -info {
285
+ position : relative ;
286
+ inset-block-start : $vertical-margin ;
287
+ }
288
+
285
289
& -before + & -text {
286
290
margin-inline-start : awsui .$space-scaled-xs ;
287
291
}
0 commit comments