Skip to content

Commit f6bc21b

Browse files
authored
fix: Harmonize drawer headers' letter spacing with other headers (#3674)
1 parent ea7f70e commit f6bc21b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/internal/styles/typography/mixins.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105

106106
@mixin font-panel-header {
107107
font-size: awsui.$font-panel-header-size;
108+
letter-spacing: awsui.$letter-spacing-heading-m;
108109
line-height: awsui.$font-panel-header-line-height;
109110
font-weight: awsui.$font-weight-heading-l;
110111
@include font-smoothing;

src/top-navigation/styles.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,25 +230,26 @@
230230
border-block-end: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
231231

232232
&-text {
233-
@include styles.font-panel-header;
234233
color: awsui.$color-text-heading-default;
235234
flex: 1;
236235
margin-block: 0;
237236
margin-inline: 0;
238237
text-align: center;
239238

239+
&--title {
240+
/* used in test-utils */
241+
@include styles.font-panel-header;
242+
}
243+
240244
&--secondary {
241245
font-size: awsui.$font-header-h2-description-size;
242246
line-height: awsui.$font-header-h2-description-line-height;
243247
font-weight: styles.$font-weight-normal;
248+
@include styles.font-smoothing;
244249
}
245250
}
246251
}
247252

248-
.overflow-menu-header-text--title {
249-
/* used in test-utils */
250-
}
251-
252253
.overflow-menu-back-button {
253254
/* used in test-utils */
254255
}

0 commit comments

Comments
 (0)