-
Notifications
You must be signed in to change notification settings - Fork 201
feat(contextual-help): S2 migration #3909
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
base: spectrum-two
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 75a08f1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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-3909--spectrum-css.netlify.app |
File metricsSummaryTotal size: 1.42 MB*
contextualhelp
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
3bdff09
to
1850227
Compare
de08037
to
57323f8
Compare
c56c432
to
f237622
Compare
f237622
to
40e2b6b
Compare
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.
This looking great. Well documented and thanks for the storybook clean-up. I left one small suggestion about how we document high contrast hooks.
--spectrum-contextual-help-body-sans-serif-font-family: var(--spectrum-sans-font-family-stack); | ||
--spectrum-contextual-help-body-sans-serif-font-weight: var(--spectrum-body-sans-serif-font-weight); | ||
--spectrum-contextual-help-body-sans-serif-font-style: var(--spectrum-body-sans-serif-font-style); | ||
--spectrum-contextual-help-body-line-height: var(--spectrum-line-height-200); | ||
|
||
--spectrum-contextual-help-body-color: var(--spectrum-body-color); |
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.
That's so funny this ties right into our conversation this morning in backlog grooming! I think this makes a lot of sense here for now but I am interested in exploring more how typography can inherit better from the cascade without requiring so much intervention.
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.
Agreed — it struck me as being quite verbose. I'd love something simpler. ✨
40e2b6b
to
347868e
Compare
1bceda1
to
75a08f1
Compare
Description
CSS-819
S2 migration for contextual help
This migrates the
contextual help
component to the latest Spectrum 2 designs. Custom properties have been remapped and added per the design specification.Typographic and color tokens have been updated per design specifications.
All existing popover positioning varations are supported.
New custom properties
--spectrum-contextual-help-body-color
--spectrum-contextual-help-body-line-height
--spectrum-contextual-help-body-sans-serif-font-family
--spectrum-contextual-help-body-sans-serif-font-style
--spectrum-contextual-help-body-sans-serif-font-weight
--spectrum-contextual-help-title-color
--spectrum-contextual-help-title-font-style
--spectrum-contextual-help-title-font-weight
--spectrum-contextual-help-title-line-height
--spectrum-contextual-help-title-sans-serif-font-family
New mods
--mod-contextual-help-body-line-height
--mod-contextual-help-body-sans-serif-font-family
--mod-contextual-help-body-sans-serif-font-style
--mod-contextual-help-body-sans-serif-font-weight
--mod-contextual-help-body-size
--mod-contextual-help-title-color
--mod-contextual-help-title-font-style
--mod-contextual-help-title-font-weight
--mod-contextual-help-title-line-height
--mod-contextual-help-title-sans-serif-font-family
--highcontrast-contextual-help-heading-color
--highcontrast-contextual-help-title-color
Removed mods
--highcontrast-contextual-help-heading-color
Screenshots
To-do list