-
Notifications
You must be signed in to change notification settings - Fork 201
feat(underlay)!: diy migration #2096
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
Conversation
🚀 Deployed on https://pr-2096--spectrum-css.netlify.app |
note: #1862 will need to be updated with any changes to Dialog, Button, and Underlay that this PR brings in. |
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 looks great from a code-perspective. Haven't seen the rendered pages yet but if VRT passes, this is good to merge too.
@@ -55,7 +55,7 @@ export default { | |||
}, | |||
parameters: { | |||
actions: { | |||
handles: [], | |||
handles: ["click .spectrum-Dialog button"], |
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.
😍
components/underlay/index.css
Outdated
--spectrum-dialog-confirm-background-entry-animation-delay: 0ms; | ||
--spectrum-dialog-confirm-background-exit-animation-ease: cubic-bezier(0.5, 0, 1, 1); /* wrong in DNA */ | ||
--spectrum-dialog-confirm-background-entry-animation-ease: cubic-bezier(0, 0, 0.40, 1); /* wrong in DNA */ | ||
--spectrum-underlay-background-entry-animation-delay: var(--spectrum-animation-duration-0); /* Bug: this must be 0ms, not 0 */ |
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.
Does this work as-is or do we need to do a hardocoded 0ms for now?
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.
It does work as is. I had interrupted this comment as it previously was 0
and it was corrected to be 0ms
then here I am just using our custom animation token for it.
I couldn't find the related git blame that brought in the comment. Nor did I see any active Github issues for it. I have removed the comment for now as it doesn't seem relevant any more.
components/underlay/index.css
Outdated
--spectrum-dialog-confirm-background-exit-animation-ease: cubic-bezier(0.5, 0, 1, 1); /* wrong in DNA */ | ||
--spectrum-dialog-confirm-background-entry-animation-ease: cubic-bezier(0, 0, 0.40, 1); /* wrong in DNA */ | ||
--spectrum-underlay-background-entry-animation-delay: var(--spectrum-animation-duration-0); /* Bug: this must be 0ms, not 0 */ | ||
--spectrum-underlay-background-exit-animation-ease: cubic-bezier(0.5, 0, 1, 1); /* wrong in DNA */ |
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.
Is there an issue associated with this so we can track it's update?
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.
not that I am aware of or that I could find.
I however was able to replace each of these with our custom animation tokens
@jenndiaz Do we need to open an SWC PR with a beta for this one? |
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.
Just a few things!
@castastrophe yes I think with how underlay touches multiple other components, a beta release would be a good idea. |
d62626f
to
1e7067b
Compare
2dd1f0d
to
1a44349
Compare
Beta released: |
e7dbd9a
to
71ca623
Compare
5ceeff2
to
9c9deaf
Compare
044d1ca
to
5cfcd49
Compare
BREAKING CHANGE: migrates Underlay to use `@adobe/spectrum-tokens` Additionally: * chore(underlay): build changes * chore(underlay): add mods * feat(underlay): add to storybook * feat(dialog): use underlay in story * refactor(dialog): story and template * refactor(underlay): use custom animation tokens * chore(underlay): mods * refactor(dialog): remove unneeded handle * fix(underlay): address pr feedback * refactor(underlay): use new token for underlay color * chore(underlay): manual version increase for beta release * chore(underlay): update mods * chore(underlay): remove skin import --------- Co-authored-by: Patrick Fulton <pfulton@adobe.com>
Description
The DIY migration for Underlay
--mods
Underlay
to StorybookDialog
story to use the underlay componentHow and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Test Outline
Open Alert Confirmation Dialog
button to reopen. Inspect underlay compared to the underlay on the live docs site for any design regressions.Regression testing
Validate:
Screenshots
To-do list
I have read the contribution guidelines.
I have updated relevant storybook stories and templates.
I have tested these changes in Windows High Contrast mode.
If my change impacts other components, I have tested to make sure they don't break.
If my change impacts documentation, I have updated the documentation accordingly.
✨ This pull request is ready to merge. ✨