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-2396): update no pointer distance for the tooltip and popover components #365

Merged
merged 11 commits into from
Sep 13, 2022

Conversation

jannuk59
Copy link
Contributor

@jannuk59 jannuk59 commented Sep 8, 2022

PPDSC-2326

  • Updated the condition to ...(distance ? [offset(distance)] : []), to set the distance when there is noPointer.
  • By default the distance between the Button and table will be 'space020'

TO DO
Check whether we can set the customisable distance when we have noPointer for the Tooltip and Popover components

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

Before:

After:

Who should review this PR:

How to test:

@github-actions github-actions bot added the feature This change contains a new feature label Sep 8, 2022
@jannuk59 jannuk59 marked this pull request as ready for review September 8, 2022 13:42
src/popover/__tests__/popover.stories.tsx Outdated Show resolved Hide resolved
src/tooltip/__tests__/tooltip.stories.tsx Outdated Show resolved Hide resolved
@evgenitsn
Copy link
Contributor

Can you please update the PR name to follow the convention?
Example: #370

@jannuk59 jannuk59 changed the title Feat/ppdsc 2396 update pointer distance feat(PPDSC-2396): update no pointer distance Sep 12, 2022
@jannuk59 jannuk59 changed the title feat(PPDSC-2396): update no pointer distance feat(PPDSC-2396): update no pointer distance for the tooltip and popover components Sep 12, 2022
@mutebg mutebg added the ready for review Please assist in getting this reviewed label Sep 13, 2022
@jannuk59 jannuk59 merged commit 7ea8a02 into main Sep 13, 2022
@jannuk59 jannuk59 deleted the feat/PPDSC-2396-update-pointer-distance branch September 13, 2022 14:06
Xin00163 pushed a commit that referenced this pull request Oct 17, 2022
…ver components (#365)

* feat(PPDSC-2396): updated customizable distance when there is no pointer

* feat(PPDSC-2396): removed the example variable

* feat(PPDSC-2396): updated docs

* feat(PPDSC-2396): simplyfied the condition

* feat(PPDSC-2396): updating snapshots

* feat(PPDSC-2396): adding up the storybook scenario

* feat(PPDSC-2396): tooltip and popover storybook scenarios

* feat(PPDSC-2396): updated token space0 to space000

Co-authored-by: Ravindren <[email protected]>
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 ready for review Please assist in getting this reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants