-
Notifications
You must be signed in to change notification settings - Fork 202
feat(coachmark): S2 migration #3412
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7e78a79
feat(coachmark): s2 migration
cdransf 9220764
fix(coachmark): sets required padding for action menu popover child
cdransf 86bc088
fix(coachmark): enforces consistent spacing from image to header and …
cdransf 7b1443d
fix(coachmark): use classmap instead of ternary; remove stories from …
cdransf 5d2f661
fix(coachmark): update changeset heading depth
cdransf f26d781
fix(coachmark): update solution for action menu spacing
cdransf 3c6bf81
chore(coachmark): long title test + update metadata
cdransf 8aa3010
fix(coachmark): remove repetetive arguments; clarify naming; revert b…
cdransf cfb33dc
fix(coachmark): remove unused custom property
cdransf 19dc5dd
fix(coachmark): remove repetitive wrapper styles
cdransf d1ff71d
fix(coachmark): update font weight token; split out root selector; re…
cdransf c93b2d6
fix(coachmark): flex alignment + tokens changeset
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 hidden or 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,11 @@ | ||
--- | ||
"@spectrum-css/tokens": minor | ||
--- | ||
|
||
#### Tokens | ||
|
||
Adds custom vars for coachmark action menu vertical spacing. These help provide consistent spacing between states when the action menu is and is not visible. | ||
|
||
In `tokens/custom/large-vars.css`: `--spectrum-coachmark-action-menu-vertical-offset`. | ||
|
||
In `tokens/custom/medium-vars.css`: `--spectrum-coachmark-action-menu-vertical-offset`. |
This file contains hidden or 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,62 @@ | ||
--- | ||
"@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-heading-serif-font-style | --spectrum-title-serif-font-style | | ||
| --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 | | ||
|
||
### New properties | ||
|
||
```css | ||
--spectrum-coach-mark-edge-to-content | ||
--spectrum-coach-mark-maximum-width | ||
--spectrum-coach-mark-media-height | ||
--spectrum-coach-mark-media-minimum-height | ||
--spectrum-coach-mark-minimum-width | ||
--spectrum-coach-mark-pagination-color | ||
--spectrum-coach-mark-pagination-text-to-bottom-edge | ||
--spectrum-coach-mark-width | ||
--spectrum-coachmark-body-to-footer | ||
--spectrum-coachmark-border-radius | ||
--spectrum-coachmark-border-size | ||
--spectrum-coachmark-buttongroup-display | ||
--spectrum-coachmark-buttongroup-mobile-display | ||
--spectrum-coachmark-content-font-size | ||
--spectrum-coachmark-content-font-weight | ||
--spectrum-coachmark-header-to-body | ||
--spectrum-coachmark-heading-to-action-button | ||
--spectrum-coachmark-max-width | ||
--spectrum-coachmark-media-fixed-height | ||
--spectrum-coachmark-media-min-height | ||
--spectrum-coachmark-menu-display | ||
--spectrum-coachmark-menu-mobile-display | ||
--spectrum-coachmark-min-width | ||
--spectrum-coachmark-padding | ||
--spectrum-coachmark-step-color | ||
--spectrum-coachmark-step-font-size | ||
--spectrum-coachmark-step-font-style | ||
--spectrum-coachmark-step-text-font-weight | ||
--spectrum-coachmark-step-text-line-height | ||
--spectrum-coachmark-step-to-bottom | ||
--spectrum-coachmark-title-color | ||
--spectrum-coachmark-title-font-family | ||
--spectrum-coachmark-title-font-size | ||
--spectrum-coachmark-title-font-style | ||
--spectrum-coachmark-title-text-font-weight | ||
--spectrum-coachmark-title-text-line-height | ||
``` | ||
|
||
## 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 `Fixed image height`. The class is conditionally added within the `hasImage` block and, as such, will only impact rendering when `hasImage` is also `true`. | ||
cdransf marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
cdransf marked this conversation as resolved.
Show resolved
Hide resolved
jawinn marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.