Skip to content

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

Merged
merged 13 commits into from
Aug 29, 2023
Merged

feat(underlay)!: diy migration #2096

merged 13 commits into from
Aug 29, 2023

Conversation

jenndiaz
Copy link
Contributor

@jenndiaz jenndiaz commented Aug 14, 2023

Description

The DIY migration for Underlay

  • updates build system
  • implements --mods
  • uses custom tokens for animation values
  • adds Underlay to Storybook
  • updates Dialog story to use the underlay component

How 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

  1. Open the docs site for the dialog component. Scroll to Dialog - Alert Confirmation, Click on the cancel button to close it, then use the Open Alert Confirmation Dialog button to reopen. Inspect underlay compared to the underlay on the live docs site for any design regressions.
  • Ensure underly color is correct in all 3 theme colors
  • Animations on close and open should not of changed
  1. Open the storybook site for the Underlay component
  • controls should all function as expected
  • styling should match docs site
  1. Open the storybook site for the Dialog component
  • controls should all function as expected
  • styling should match docs site

Regression testing

Validate:

  1. A legacy documentation page (such as accordion), including:
  • The page renders correctly
  • The page is accessible
  • The page is responsive
  1. A migrated documentation page (such as action group), including:
  • The page renders correctly
  • The page is accessible
  • The page is responsive

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. ✨

@github-actions
Copy link
Contributor

github-actions bot commented Aug 14, 2023

🚀 Deployed on https://pr-2096--spectrum-css.netlify.app

@github-actions github-actions bot temporarily deployed to pull request August 14, 2023 19:50 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 15, 2023 20:17 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 15, 2023 20:42 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 15, 2023 22:48 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 15, 2023 23:09 Inactive
@jenndiaz jenndiaz marked this pull request as ready for review August 15, 2023 23:37
@github-actions github-actions bot temporarily deployed to pull request August 15, 2023 23:43 Inactive
@jenndiaz
Copy link
Contributor Author

note: #1862 will need to be updated with any changes to Dialog, Button, and Underlay that this PR brings in.

Copy link
Collaborator

@castastrophe castastrophe left a 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"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

--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 */
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

--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 */
Copy link
Collaborator

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?

Copy link
Contributor Author

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

@castastrophe castastrophe added the run_vrt For use on PRs looking to kick off VRT label Aug 16, 2023
@castastrophe
Copy link
Collaborator

@jenndiaz Do we need to open an SWC PR with a beta for this one?

@github-actions github-actions bot removed the run_vrt For use on PRs looking to kick off VRT label Aug 16, 2023
Copy link
Contributor

@mlogsdon18 mlogsdon18 left a 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!

@jenndiaz
Copy link
Contributor Author

@jenndiaz Do we need to open an SWC PR with a beta for this one?

@castastrophe yes I think with how underlay touches multiple other components, a beta release would be a good idea.

@jenndiaz jenndiaz force-pushed the jenndiaz/diy-migration-underlay branch from d62626f to 1e7067b Compare August 16, 2023 19:22
@github-actions github-actions bot temporarily deployed to pull request August 16, 2023 19:32 Inactive
@jenndiaz jenndiaz force-pushed the jenndiaz/diy-migration-underlay branch from 2dd1f0d to 1a44349 Compare August 21, 2023 18:11
@github-actions github-actions bot temporarily deployed to pull request August 21, 2023 18:18 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 21, 2023 18:37 Inactive
@pfulton
Copy link
Collaborator

pfulton commented Aug 21, 2023

Beta released: @spectrum-css/underlay@3.0.0-beta.0

@github-actions github-actions bot temporarily deployed to pull request August 21, 2023 21:41 Inactive
@jenndiaz jenndiaz force-pushed the jenndiaz/diy-migration-underlay branch 2 times, most recently from e7dbd9a to 71ca623 Compare August 23, 2023 19:10
@github-actions github-actions bot temporarily deployed to pull request August 23, 2023 19:16 Inactive
@jenndiaz jenndiaz force-pushed the jenndiaz/diy-migration-underlay branch 2 times, most recently from 5ceeff2 to 9c9deaf Compare August 28, 2023 15:22
@github-actions github-actions bot temporarily deployed to pull request August 28, 2023 15:39 Inactive
@jenndiaz jenndiaz force-pushed the jenndiaz/diy-migration-underlay branch from 044d1ca to 5cfcd49 Compare August 28, 2023 19:27
@github-actions github-actions bot temporarily deployed to pull request August 28, 2023 19:35 Inactive
@pfulton pfulton added the run_vrt For use on PRs looking to kick off VRT label Aug 28, 2023
@github-actions github-actions bot removed the run_vrt For use on PRs looking to kick off VRT label Aug 28, 2023
@pfulton pfulton merged commit 2e0651a into main Aug 29, 2023
@pfulton pfulton deleted the jenndiaz/diy-migration-underlay branch August 29, 2023 13:30
Rajdeepc pushed a commit that referenced this pull request Sep 11, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants