Skip to content
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(PPDSC-2119): floating element motion #245

Merged
merged 7 commits into from
Jul 4, 2022

Conversation

mstuartf
Copy link
Contributor

PPDSC-2119

What

  1. Background:
  • v1 Tooltip and Popover components missing transitions
  1. What did you do:
  • Added support for transition presets to BaseFloatingElement
  • Added defaultTransition presets to Tooltip and Popover components
  • Updated tests
  • Updated Storybook scenarios
  1. What does the reviewers should expect:
  • Tooltip and Popover components should use fade transitionPreset
  • Possible to override transitionPresets for Tooltip and Popover

I have done:

  • Written unit tests against changes
  • Written functional tests against the component and/or NewsKit site
  • Updated relevant documentation

I have tested manually:

  • The feature's functionality is working as expected on Chrome, Firefox, Safari and Edge
  • The screen reader reads and flows through the elements as expected.
  • There are no new errors in the browser console coming from this PR.
  • When visual test is not added, it renders correctly on different browsers and mobile viewports (Safari, Firefox, small mobile viewport, tablet)
  • The Playground feature is working as expected

- Support transitionPreset in BaseFloatingElement
- Add transitionPreset to Tooltip defaults and update snaps
- Add transitionPreset to Popover defaults and update snaps
- Update theme snapshots for changes to defaults
- Add support for transitionPreset overrides to floating elements
- Update Tooltip and Popover overrides tests to include transitionPreset overrides
- Update Tooltip and Popover overrides Storybook scenarios to include transitionPreset overrides
@github-actions github-actions bot added the feature This change contains a new feature label Jun 30, 2022
Copy link
Contributor

@mutebg mutebg left a comment

Choose a reason for hiding this comment

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

Looks very good !

@mstuartf mstuartf merged commit a20f4b4 into main Jul 4, 2022
@mstuartf mstuartf deleted the feat/PPDSC-2119-floating-element-motion branch July 4, 2022 14:32
Xin00163 pushed a commit that referenced this pull request Oct 17, 2022
* feat(PPDSC-2119): add floating element motion

- Support transitionPreset in BaseFloatingElement
- Add transitionPreset to Tooltip defaults and update snaps
- Add transitionPreset to Popover defaults and update snaps
- Update theme snapshots for changes to defaults

* feat(PPDSC-2119): make variable names clearer

* feat(PPDSC-2119): transition preset overrides

- Add support for transitionPreset overrides to floating elements
- Update Tooltip and Popover overrides tests to include transitionPreset overrides
- Update Tooltip and Popover overrides Storybook scenarios to include transitionPreset overrides
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This change contains a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants