Conversation
🦋 Changeset detectedLatest commit: c93b2d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 87 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
🚀 Deployed on https://pr-3412--spectrum-css.netlify.app |
File metricsSummaryTotal size: 1.37 MB* Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.
File change detailscoachmark
tokens
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
jawinn
left a comment
There was a problem hiding this comment.
I'm seeing a few things on the design not represented yet.
Line-height changes
I see body and pagination in the S2 specs marked as using line-height-200. I don't see the CSS using this token.

Keyboard shortcut
I don't see this new feature represented yet in our Docs examples or styles or controls. Does design need to define tokens for these keyboard shortcut elements on the specs?



4:3 and 16:19 image
The design shows an example of images at both of these aspect ratios, that we should demonstrate in our docs and maybe have a control for. I'm not exactly sure how this ties in with the sizing of the image and tokens.
Wait on popover to finalize?
This component is heavily reliant on popover, which has its S2 migration in progress and has been discussing and updating some items related to coachmark (#3365). So it may be worth waiting on that to merge before final review of its design.
Awesome catches! I updated the line-height and font tokens. I marked this blocked pending the popover work and started a thread about the image implementation (one token includes |
Spoke with design and it sounds like the minimum token is the minimum dimension for the coach mark image and 4:3 is not a strict max. This is the current state: .spectrum-CoachMark-image-wrapper {
block-size: var(--mod-coachmark-media-height, var(--spectrum-coachmark-media-height));
min-block-size: var(--mod-coachmark-media-min-height, var(--spectrum-coachmark-media-min-height));
...
} |
cdb180d to
27d01df
Compare
e9b9444 to
28878d9
Compare
28878d9 to
63bbe7a
Compare
fcc97e9 to
db908ca
Compare
jawinn
left a comment
There was a problem hiding this comment.
The line-height looks good, and thanks for finding out the intentions on the 4:3 and 16:9 examples (where 4:3 is now a variant class).
It looks like the use of the heights needs a little adjustments.
And the newly added keyboard shortcut feature needs to be built and documented.
The stories on the "Docs" page appear cut off, but that appears to be more popover related? That is possibly something that was already fixed in main as I don't see that issue there.
2c5d15c to
4715dab
Compare
jawinn
left a comment
There was a problem hiding this comment.
We're pretty close on this one! A few suggestions and that one spacing issue still needs a solution.
marissahuysentruyt
left a comment
There was a problem hiding this comment.
It's coming along! I haven't looked at this in a while so lots of my previous feedback has been addressed- thank you!
| ...args, | ||
| hasImage: true, | ||
| imageIsFixedHeight: false, | ||
| imageSource: "example-card-portrait.png", |
There was a problem hiding this comment.
@cdransf Just wanted to ping you on this again. I believe we can remove some of the repetitive args. hasImage can be deleted as well as imageSource!
marissahuysentruyt
left a comment
There was a problem hiding this comment.
Overall, the tokens are looking really great! A few tiny things I noticed that I wanted to bring with you.
marissahuysentruyt
left a comment
There was a problem hiding this comment.
I think this is looking really great! Thanks so much for sticking with it, fielding all of the keyboard shortcut questions! Great work 🎉
- feat(coachmark): line height token - feat: add fixed height coachmark image variation - chore(coachmark): adds description to imageIsFixedHeight control - feat(coachmark): image control in story - fix(coachmark): image source control label - fix(coachmark): fixed height label - fix(coachmark): conditionally show image-dependent controls - fix(coachmark): css syntax error - chore(coachmark): adjust default args - chore(coachmark): update template and tests to handle updated story defaults; update example heights; update default image - chore(coachmark): update arg names - chore(coachmark): refactor stories to display variations and update explainers - chore(coachmark): rough keyboard shortcut implementation - feat: keyboard shortcut revisions, toggle + title control - feat(coachmark): badge tags arg - feat(coachmark): test updates - feat(coachmark): image + fixed height test - fix(coachmark): missing title - chore: resolve conflict - chore(coachmark): move shortcut control - chore: resolve conflict - fix(coachmark): address feedback - remove redundant height args - add class to story docs - update template name(s) - chore(coachmark): remove with/out shortcut from story titles; deduplicate args - chore(coachmark): add fixed height to template heading - chore(coachmark): additional custom properties in changelog - chore(coachmark): add keyboard shortcut notes to changelog - chore(coachmark): clean up + add stories - chore(coachmark): remove keyboard shortcut functionality
…header to text with action menu present Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>




Description
CSS-1024S2 coachmark migration
This migrates the
coachmarkcomponent to S2. Custom properties have been remapped per the design spec.Additions
Adds
--spectrum-coachmark-media-fixed-heightfor fixed4:3image variant and an accompanying--mod-coachmark-media-fixed-heightmod. This variation has been added to thecoachmarkcomponent story as a boolean control labeled asImage fixed height. The class is conditionally added within thehasImageblock and, as such, will only impact rendering whenhasImageis alsotrue.Validation steps
coachmarkcomponent and verify no regressions have occurred.Note: the new
font-familytokens set the font toAdobe CleanbutAdobe Cleanis not loading on the branch created from thespectrum-twobase branch.To-do list