Skip to content

Commit

Permalink
fix(coachmark): title control
Browse files Browse the repository at this point in the history
  • Loading branch information
cdransf committed Jan 15, 2025
1 parent 20fff6d commit 034245f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/coachmark/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
--spectrum-coachmark-step-text-line-height: var(--spectrum-line-height-200);
--spectrum-coachmark-step-to-bottom: var(--spectrum-coach-mark-pagination-text-to-bottom-edge);

--spectrun-coachmark-keyboard-shortcut-font-family: var(--spectrum-code-font-family);
--spectrum-coachmark-keyboard-shortcut-font-family: var(--spectrum-code-font-family);

/* @passthrough start */
--mod-buttongroup-justify-content: flex-end;
Expand Down Expand Up @@ -130,7 +130,7 @@
}

.spectrum-CoachMark-shortcut {
font-family: var(--mod-coachmark-keyboard-shortcut-font-family, var(--spectrun-coachmark-keyboard-shortcut-font-family));
font-family: var(--mod-coachmark-keyboard-shortcut-font-family, var(--spectrum-coachmark-keyboard-shortcut-font-family));
white-space: nowrap;
}

Expand Down
1 change: 1 addition & 0 deletions components/coachmark/metadata/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"--spectrum-coachmark-content-font-weight",
"--spectrum-coachmark-header-to-body",
"--spectrum-coachmark-heading-to-action-button",
"--spectrum-coachmark-keyboard-shortcut-font-family",
"--spectrum-coachmark-max-width",
"--spectrum-coachmark-media-fixed-height",
"--spectrum-coachmark-media-min-height",
Expand Down
3 changes: 2 additions & 1 deletion components/coachmark/stories/coachmark.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export default {
export const Default = CoachMarkGroup.bind({});
Default.tags = ["!autodocs"];
Default.args = {
title: "Coach mark title",
image: "example-card-landscape.png",
hasKeyboardShortcut: false,
};
Expand Down Expand Up @@ -159,7 +160,7 @@ MediaStates.parameters = {
};

/** Keyboard shortcuts may be shown in place of or below the action menu. */
export const ShortCutStories = CoachmarkShortcutStatesTemplate.bind({})
export const ShortCutStories = CoachmarkShortcutStatesTemplate.bind({});
ShortCutStories.tags = ["!dev"];
ShortCutStories.parameters = {
chromatic: {
Expand Down

0 comments on commit 034245f

Please sign in to comment.