Skip to content

Commit 086b9a9

Browse files
committed
fix(coachmark): update font weight token; split out root selector; restore margin
1 parent 8468525 commit 086b9a9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

components/coachmark/dist/metadata.json

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"--mod-coachmark-content-font-weight",
2929
"--mod-coachmark-content-line-height",
3030
"--mod-coachmark-header-to-body",
31+
"--mod-coachmark-heading-to-action-button",
3132
"--mod-coachmark-image-to-heading",
3233
"--mod-coachmark-max-width",
3334
"--mod-coachmark-media-fixed-height",
@@ -101,6 +102,7 @@
101102
"--spectrum-corner-radius-large-default",
102103
"--spectrum-heading-color",
103104
"--spectrum-line-height-200",
105+
"--spectrum-medium-font-weight",
104106
"--spectrum-popover-content-area-spacing",
105107
"--spectrum-sans-serif-font",
106108
"--spectrum-spacing-100",

components/coachmark/index.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright 2024 Adobe. All rights reserved.
2+
* Copyright 2025 Adobe. All rights reserved.
33
*
44
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License. You may obtain a copy
@@ -42,7 +42,7 @@
4242
--spectrum-coachmark-step-color: var(--spectrum-coach-mark-pagination-color);
4343
--spectrum-coachmark-step-font-style: var(--spectrum-body-serif-font-style);
4444
--spectrum-coachmark-step-font-size: var(--spectrum-coach-mark-pagination-body-font-size);
45-
--spectrum-coachmark-step-text-font-weight: var(--spectrum-body-sans-serif-font-weight);
45+
--spectrum-coachmark-step-text-font-weight: var(--spectrum-medium-font-weight);
4646
--spectrum-coachmark-step-text-line-height: var(--spectrum-line-height-200);
4747
--spectrum-coachmark-step-to-bottom: var(--spectrum-coach-mark-pagination-text-to-bottom-edge);
4848

@@ -53,7 +53,9 @@
5353
--mod-popover-content-area-spacing: 0;
5454
--mod-button-edge-to-visual-only: 9px;
5555
/* @passthrough end */
56+
}
5657

58+
.spectrum-CoachMark {
5759
position: relative;
5860
min-inline-size: var(--mod-coachmark-min-width, var(--spectrum-coachmark-min-width));
5961
max-inline-size: var(--mod-coachmark-max-width, var(--spectrum-coachmark-max-width));
@@ -121,6 +123,7 @@
121123

122124
white-space: nowrap;
123125
z-index: 1;
126+
margin-inline-start: var(--mod-coachmark-heading-to-action-button, var(--spectrum-spacing-300));
124127
margin-block: var(--mod-coachmark-action-menu-vertical-offset, var(--spectrum-coachmark-action-menu-vertical-offset));
125128
}
126129

0 commit comments

Comments
 (0)