-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(coachmark): S2 migration #3412
Open
cdransf
wants to merge
14
commits into
spectrum-two
Choose a base branch
from
cdransf/s2-migration-coachmark
base: spectrum-two
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+349
−129
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f0e70f8
feat(coachmark): s2 migration
cdransf cf74b1c
feat(coachmark): line height token
cdransf b2fdaf8
feat: add fixed height coachmark image variation
cdransf 1dae947
chore(coachmark): adds description to imageIsFixedHeight control
cdransf 7630128
feat(coachmark): image control in story
cdransf 11b1705
fix(coachmark): image source control label
cdransf 7758162
fix(coachmark): fixed height label
cdransf 2e2014d
fix(coachmark): conditionally show image-dependent controls
cdransf e7c09ab
fix(coachmark): css syntax error
cdransf 8a83806
chore(coachmark): adjust default args
cdransf 6bfdff7
chore(coachmark): update template and tests to handle updated story d…
cdransf b41d73e
chore(coachmark): update arg names
cdransf b1b6909
chore(coachmark): refactor stories to display variations and update e…
cdransf 19f63b6
chore(coachmark): rough keyboard shortcut implementation
cdransf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
"@spectrum-css/coachmark": major | ||
--- | ||
|
||
# S2 coachmark migration | ||
|
||
This migrates the `coachmark` component to S2. Custom properties have been remapped per the design spec. | ||
|
||
| Before | After | | ||
| ------------------------------------------ | ----------------------------------------------- | | ||
| --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-body-sans-serif-font-style | --spectrum-body-serif-font-style | | ||
| --spectrum-coach-mark-pagination-body-size | --spectrum-coach-mark-pagination-body-font-size | | ||
|
||
## Additions | ||
|
||
Adds `--spectrum-coachmark-media-fixed-height` for fixed `4:3` image variant and an accompanying `--mod-coachmark-media-fixed-height` mod. This variation has been added to the `coachmark` component story as a boolean control labeled as `Image fixed height`. The class is conditionally added within the `hasImage` block and, as such, will only impact rendering when `hasImage` is also `true`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still looking for the keyboard shortcut feature that is part of the S2 design spec. Were you planning to add that (markup, new CSS, stories)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I totally missed that! Will be digging into it shortly (and may have some questions on how best to approach it).