Skip to content

Commit 6edaee1

Browse files
committed
Refine spacings
1 parent 2cc28ef commit 6edaee1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/split-panel/implementation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export function SplitPanelImplementation({
103103
const wrappedHeader = (
104104
<div className={clsx(styles.header, isToolbar && styles['with-toolbar'])} style={appLayoutMaxWidth}>
105105
<div className={styles['header-main-row']}>
106-
<div className={clsx(styles['header-main-content'], showDescription && styles['with-description'])}>
107-
<div className={styles['header-tag-and-info']}>
106+
<div className={styles['header-main-content']}>
107+
<div className={clsx(styles['header-tag-and-info'], showDescription && styles['with-description'])}>
108108
<h2 className={clsx(styles['header-tag'], !!headerInfo && styles['with-info'])} id={panelHeaderId}>
109109
{headerBefore && (
110110
<div

src/split-panel/styles.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
260260
// Keep the actions slot always at the block start,
261261
// even if the heading and the info slot wrap into multiple lines.
262262
align-items: flex-start;
263-
&.with-description {
264-
margin-block-end: awsui.$space-scaled-xxxs;
265-
}
266263
}
267264

268265
// Header tag and info link
@@ -272,6 +269,9 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
272269
// The line height of the header text might not be respected in non-high pixel density screens
273270
// unless it is set to a smaller value in its parent container.
274271
line-height: awsui.$line-height-body-s;
272+
&.with-description {
273+
margin-block-end: awsui.$space-scaled-xxxs;
274+
}
275275
}
276276

277277
&-tag.with-info,

0 commit comments

Comments
 (0)