Skip to content

Commit

Permalink
feat(coachmark): font token revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
cdransf committed Dec 10, 2024
1 parent a24e3c5 commit 28878d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .changeset/nice-cows-shout.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ This migrates the `coachmark` component to S2. Custom properties have been remap

| Before | After |
| ------------------------------------------ | ----------------------------------------------- |
| --spectrum-sans-serif-font | --spectrum-title-sans-serif-font-family |
| --spectrum-heading-serif-font-style | --spectrum-title-serif-font-style |
| --spectrum-heading-sans-serif-font-weight | --spectrum-title-sans-serif-font-weight |
| --spectrum-coach-mark-title-size | --spectrum-coach-mark-title-font-size |
| --spectrum-heading-line-height | --spectrum-title-line-height |
| --spectrum-coach-mark-body-size | --spectrum-coach-mark-body-font-size |
| --spectrum-sans-serif-font | --spectrum-body-sans-serif-font-family |
| --spectrum-body-sans-serif-font-style | --spectrum-body-serif-font-style |
| --spectrum-coach-mark-pagination-body-size | --spectrum-coach-mark-pagination-body-font-size |
4 changes: 2 additions & 2 deletions components/coachmark/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ governing permissions and limitations under the License.

/* font */
--spectrum-coachmark-title-color: var(--spectrum-heading-color);
--spectrum-coachmark-title-font-family: var(--spectrum-title-sans-serif-font-family);
--spectrum-coachmark-title-font-family: var(--spectrum-sans-serif-font);
--spectrum-coachmark-title-font-style: var(--spectrum-title-serif-font-style);
--spectrum-coachmark-title-text-font-weight: var(--spectrum-title-sans-serif-font-weight);
--spectrum-coachmark-title-font-size: var(--spectrum-coach-mark-title-font-size);
Expand All @@ -44,7 +44,7 @@ governing permissions and limitations under the License.

--spectrum-coachmark-step-color: var(--spectrum-coach-mark-pagination-color);
--spectrum-coachmark-step-font-weight: var(--spectrum-body-medium-font-weight);
--spectrum-coachmark-step-font-family: var(--spectrum-body-sans-serif-font-family);
--spectrum-coachmark-step-font-family: var(--spectrum-sans-serif-font);
--spectrum-coachmark-step-font-style: var(--spectrum-body-serif-font-style);
--spectrum-coachmark-step-line-height: var(--spectrum-line-height-200);
--spectrum-coachmark-step-font-size: var(--spectrum-coach-mark-pagination-body-font-size);
Expand Down

0 comments on commit 28878d9

Please sign in to comment.