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

fix(overlay): safari :focus-visible inconsistency when using overlay type modal #4912

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

mizgaionutalexandru
Copy link
Contributor

@mizgaionutalexandru mizgaionutalexandru commented Nov 7, 2024

Description

This PR makes so that the tooltip isn't shown after a click overlay (e.g. popover) is opened in Safari in a type="modal" overlay, to have the same behaviour as in Chrome/Firefox. The inconsistency comes from the different heuristics Webkit uses to apply the focus-visible pseudo-class on elements.

Related issue(s)

Motivation and context

The main motivation is consistency across browsers/engines.

How has this been tested?

These test cases have been tested in Safari as well as other supported browsers (e.g. Chrome).

  • Test case 1

    1. Open the storybook on an overlay with type="modal" and a click and hover effect
    2. Click on the button to open the popover (the 'click' content)
    3. Click outside the popover to close it
    4. Observe that the button does NOT have a focus ring around it and the tooltip does NOT open
  • Test case 2

    1. Open the storybook on an overlay with type="modal" and a click and hover effect
    2. Tab to the button
    3. Observe that the tooltip is opened and the focus ring appears
    4. Press 'Enter' to open the popover (the 'click' content)
    5. Press 'Escape' to close the popover
    6. Observe that the tooltip is opened and the focus ring appears
    7. Repeat with Tab and Shift+Tab
  • Did it pass in Desktop?

  • Did it pass in Mobile?

  • Did it pass in iPad?

Screenshots (if appropriate)

Before the fix:

before.mov

After the fix:

after.mov

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

Copy link

github-actions bot commented Nov 7, 2024

Branch preview

Review the following VRT differences

When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:

If the changes are expected, update the current_golden_images_cache hash in the circleci config to accept the new images. Instructions are included in that file.
If the changes are unexpected, you can investigate the cause of the differences and update the code accordingly.

@coveralls
Copy link
Collaborator

coveralls commented Nov 7, 2024

Pull Request Test Coverage Report for Build 12003603906

Details

  • 45 of 50 (90.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 98.17%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/overlay/src/HoverController.ts 30 35 85.71%
Totals Coverage Status
Change from base Build 11980793562: -0.02%
Covered Lines: 32434
Relevant Lines: 32859

💛 - Coveralls

Copy link

github-actions bot commented Nov 7, 2024

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.99 0.97 0.97
Accessibility 1 1 1
Best Practices 1 1 1
SEO 1 0.92 0.92
PWA 1 1 1
What is this?

Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on main ("Main"). Higher scores are better, but note that the SEO scores on Netlify URLs are artifically constrained to 0.92.

Transfer Size

Category Latest Main Branch
Total 250.681 kB 237.065 kB 236.979 kB 🏆
Scripts 60.418 kB 54.375 kB 🏆 54.498 kB
Stylesheet 54.11 kB 48.22 kB 47.975 kB 🏆
Document 6.22 kB 5.462 kB 🏆 5.50 kB
Font 126.963 kB 126.632 kB 🏆 126.633 kB

Request Count

Category Latest Main Branch
Total 52 52 52
Scripts 41 41 41
Stylesheet 5 5 5
Document 1 1 1
Font 2 2 2

Copy link

github-actions bot commented Nov 7, 2024

Tachometer results

Chrome

action-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 54.15ms - 55.13ms - faster ✔
4% - 7%
2.33ms - 3.85ms
branch 715 kB 57.15ms - 58.32ms slower ❌
4% - 7%
2.33ms - 3.85ms
-

action-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 814 kB 76.84ms - 79.60ms - faster ✔
3% - 7%
2.85ms - 6.02ms
branch 771 kB 81.88ms - 83.44ms slower ❌
4% - 8%
2.85ms - 6.02ms
-

action-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 836 kB 49.81ms - 51.10ms - faster ✔
5% - 9%
2.63ms - 4.76ms
branch 794 kB 53.31ms - 55.00ms slower ❌
5% - 9%
2.63ms - 4.76ms
-

action-menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 959 kB 142.43ms - 145.54ms - faster ✔
3% - 6%
4.14ms - 8.72ms
branch 917 kB 148.74ms - 152.09ms slower ❌
3% - 6%
4.14ms - 8.72ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 917 kB 71.04ms - 72.33ms - faster ✔
6% - 8%
4.22ms - 6.32ms
branch 875 kB 76.13ms - 77.78ms slower ❌
6% - 9%
4.22ms - 6.32ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 916 kB 70.07ms - 71.99ms - faster ✔
4% - 7%
3.05ms - 5.53ms
branch 874 kB 74.53ms - 76.10ms slower ❌
4% - 8%
3.05ms - 5.53ms
-

test-open-close-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1875.61ms - 1878.60ms - unsure 🔍
-0% - +0%
-2.97ms - +1.45ms
branch 1.05 MB 1876.24ms - 1879.48ms unsure 🔍
-0% - +0%
-1.45ms - +2.97ms
-

test-open-close permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1880.39ms - 1882.69ms - unsure 🔍
-0% - +0%
-3.05ms - +0.73ms
branch 1.05 MB 1881.20ms - 1884.20ms unsure 🔍
-0% - +0%
-0.73ms - +3.05ms
-

alert-banner permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 689 kB 13.96ms - 14.22ms - faster ✔
2% - 5%
0.28ms - 0.68ms
branch 664 kB 14.41ms - 14.72ms slower ❌
2% - 5%
0.28ms - 0.68ms
-

alert-dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 106.85ms - 107.83ms - faster ✔
2% - 4%
1.86ms - 4.97ms
branch 697 kB 109.28ms - 112.23ms slower ❌
2% - 5%
1.86ms - 4.97ms
-

breadcrumbs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 979 kB 517.98ms - 528.44ms - faster ✔
2% - 4%
8.21ms - 20.75ms
branch 936 kB 534.23ms - 541.15ms slower ❌
2% - 4%
8.21ms - 20.75ms
-

button-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 731 kB 44.47ms - 45.45ms - faster ✔
6% - 9%
2.83ms - 4.22ms
branch 689 kB 48.00ms - 48.98ms slower ❌
6% - 9%
2.83ms - 4.22ms
-

button permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 51.37ms - 52.26ms - faster ✔
5% - 8%
2.66ms - 4.54ms
branch 697 kB 54.59ms - 56.25ms slower ❌
5% - 9%
2.66ms - 4.54ms
-

coachmark permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 910 kB 93.13ms - 95.38ms - faster ✔
5% - 8%
4.89ms - 7.96ms
branch 865 kB 99.63ms - 101.72ms slower ❌
5% - 9%
4.89ms - 7.96ms
-

combobox permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 42.53ms - 43.33ms - faster ✔
1% - 4%
0.52ms - 1.78ms
branch 958 kB 43.59ms - 44.57ms slower ❌
1% - 4%
0.52ms - 1.78ms
-

light-dom-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 395.32ms - 404.51ms - faster ✔
1% - 4%
5.87ms - 17.55ms
branch 958 kB 408.02ms - 415.23ms slower ❌
1% - 4%
5.87ms - 17.55ms
-

contextual-help permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 944 kB 54.50ms - 55.61ms - faster ✔
7% - 10%
4.44ms - 6.27ms
branch 899 kB 59.68ms - 61.13ms slower ❌
8% - 11%
4.44ms - 6.27ms
-

dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 80.81ms - 81.59ms - faster ✔
1% - 4%
0.89ms - 3.05ms
branch 760 kB 82.16ms - 84.17ms slower ❌
1% - 4%
0.89ms - 3.05ms
-

infield-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 16.67ms - 16.96ms - faster ✔
7% - 9%
1.20ms - 1.71ms
branch 636 kB 18.06ms - 18.48ms slower ❌
7% - 10%
1.20ms - 1.71ms
-

menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 210.68ms - 212.77ms - faster ✔
2% - 4%
4.00ms - 8.60ms
branch 716 kB 215.97ms - 220.07ms slower ❌
2% - 4%
4.00ms - 8.60ms
-

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 795 kB 73.01ms - 74.24ms - faster ✔
10% - 12%
8.41ms - 10.36ms
branch 770 kB 82.26ms - 83.77ms slower ❌
11% - 14%
8.41ms - 10.36ms
-

overlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 450.35ms - 470.71ms - unsure 🔍
-5% - +1%
-22.89ms - +6.67ms
branch 940 kB 457.93ms - 479.36ms unsure 🔍
-1% - +5%
-6.67ms - +22.89ms
-

directive-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 26.89ms - 27.67ms - faster ✔
4% - 8%
1.15ms - 2.25ms
branch 1.02 MB 28.59ms - 29.37ms slower ❌
4% - 8%
1.15ms - 2.25ms
-

element-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.05 MB 365.94ms - 379.49ms - faster ✔
1% - 7%
3.30ms - 25.48ms
branch 1.01 MB 378.32ms - 395.88ms slower ❌
1% - 7%
3.30ms - 25.48ms
-

lazy-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 851 kB 45.32ms - 46.54ms - faster ✔
5% - 9%
2.54ms - 4.40ms
branch 806 kB 48.69ms - 50.11ms slower ❌
5% - 10%
2.54ms - 4.40ms
-

picker-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 674 kB 30.34ms - 30.93ms - faster ✔
5% - 7%
1.45ms - 2.39ms
branch 650 kB 32.19ms - 32.91ms slower ❌
5% - 8%
1.45ms - 2.39ms
-

picker permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 514.95ms - 522.14ms - faster ✔
3% - 4%
13.69ms - 23.96ms
branch 774 kB 533.70ms - 541.04ms slower ❌
3% - 5%
13.69ms - 23.96ms
-

popover permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 109.63ms - 110.63ms - faster ✔
1% - 3%
1.65ms - 3.43ms
branch 774 kB 111.93ms - 113.41ms slower ❌
1% - 3%
1.65ms - 3.43ms
-

search permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 737 kB 44.89ms - 45.87ms - faster ✔
5% - 8%
2.41ms - 3.86ms
branch 713 kB 47.99ms - 49.05ms slower ❌
5% - 9%
2.41ms - 3.86ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 81.38ms - 82.89ms - faster ✔
4% - 7%
3.19ms - 6.23ms
branch 717 kB 85.53ms - 88.17ms slower ❌
4% - 8%
3.19ms - 6.23ms
-

tags permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 712 kB 15.88ms - 16.21ms - unsure 🔍
-3% - +0%
-0.49ms - +0.08ms
branch 688 kB 16.02ms - 16.48ms unsure 🔍
-0% - +3%
-0.08ms - +0.49ms
-

toast permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 696 kB 33.66ms - 34.56ms - faster ✔
7% - 10%
2.64ms - 3.92ms
branch 672 kB 36.94ms - 37.84ms slower ❌
8% - 12%
2.64ms - 3.92ms
-

tooltip permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 874 kB 37.32ms - 38.00ms - faster ✔
3% - 5%
1.06ms - 2.13ms
branch 828 kB 38.84ms - 39.67ms slower ❌
3% - 6%
1.06ms - 2.13ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 831 kB 26.58ms - 27.27ms - faster ✔
8% - 11%
2.30ms - 3.22ms
branch 792 kB 29.38ms - 29.99ms slower ❌
8% - 12%
2.30ms - 3.22ms
-

test-element permalink

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 56.04ms - 57.09ms - faster ✔
5% - 7%
2.69ms - 4.24ms
branch 912 kB 59.46ms - 60.61ms slower ❌
5% - 8%
2.69ms - 4.24ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 932 kB 46.14ms - 47.23ms - faster ✔
5% - 8%
2.54ms - 4.20ms
branch 887 kB 49.44ms - 50.68ms slower ❌
5% - 9%
2.54ms - 4.20ms
-

truncated permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 789 kB 65.37ms - 67.32ms - faster ✔
2% - 5%
1.18ms - 3.65ms
branch 762 kB 67.99ms - 69.52ms slower ❌
2% - 6%
1.18ms - 3.65ms
-
Firefox

action-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 121.20ms - 129.32ms - faster ✔
2% - 11%
2.01ms - 14.39ms
branch 715 kB 128.79ms - 138.13ms slower ❌
1% - 12%
2.01ms - 14.39ms
-

action-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 814 kB 166.72ms - 174.20ms - faster ✔
2% - 9%
4.30ms - 15.78ms
branch 771 kB 176.15ms - 184.85ms slower ❌
2% - 9%
4.30ms - 15.78ms
-

action-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 836 kB 113.93ms - 122.67ms - unsure 🔍
-8% - +2%
-9.38ms - +3.10ms
branch 794 kB 116.98ms - 125.90ms unsure 🔍
-3% - +8%
-3.10ms - +9.38ms
-

action-menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 959 kB 284.28ms - 287.28ms - faster ✔
15% - 17%
51.66ms - 57.50ms
branch 917 kB 337.86ms - 342.86ms slower ❌
18% - 20%
51.66ms - 57.50ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 917 kB 155.09ms - 158.83ms - slower ❌
3% - 7%
4.92ms - 10.68ms
branch 875 kB 146.97ms - 151.35ms faster ✔
3% - 7%
4.92ms - 10.68ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 916 kB 142.19ms - 148.01ms - unsure 🔍
-3% - +2%
-5.09ms - +3.45ms
branch 874 kB 142.79ms - 149.05ms unsure 🔍
-2% - +4%
-3.45ms - +5.09ms
-

test-open-close-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1893.94ms - 1904.78ms - faster ✔
0% - 1%
1.04ms - 15.16ms
branch 1.05 MB 1902.94ms - 1911.98ms slower ❌
0% - 1%
1.04ms - 15.16ms
-

test-open-close permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1896.75ms - 1900.65ms - faster ✔
0% - 1%
4.05ms - 12.07ms
branch 1.05 MB 1903.25ms - 1910.27ms slower ❌
0% - 1%
4.05ms - 12.07ms
-

alert-banner permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 689 kB 30.21ms - 32.99ms - unsure 🔍
-14% - -0%
-4.92ms - +0.00ms
branch 664 kB 32.03ms - 36.09ms unsure 🔍
-0% - +16%
-0.00ms - +4.92ms
-

alert-dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 206.57ms - 217.59ms - unsure 🔍
-2% - +5%
-4.66ms - +10.46ms
branch 697 kB 204.00ms - 214.36ms unsure 🔍
-5% - +2%
-10.46ms - +4.66ms
-

breadcrumbs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 979 kB 825.00ms - 856.84ms - faster ✔
1% - 4%
4.99ms - 37.93ms
branch 936 kB 858.16ms - 866.60ms slower ❌
1% - 5%
4.99ms - 37.93ms
-

button-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 731 kB 104.82ms - 112.34ms - faster ✔
1% - 9%
0.68ms - 10.04ms
branch 689 kB 111.15ms - 116.73ms slower ❌
0% - 9%
0.68ms - 10.04ms
-

button permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 123.54ms - 131.42ms - unsure 🔍
-7% - +0%
-9.97ms - +0.65ms
branch 697 kB 128.58ms - 135.70ms unsure 🔍
-1% - +8%
-0.65ms - +9.97ms
-

coachmark permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 910 kB 198.61ms - 205.35ms - faster ✔
3% - 8%
7.23ms - 18.29ms
branch 865 kB 210.35ms - 219.13ms slower ❌
4% - 9%
7.23ms - 18.29ms
-

combobox permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 73.28ms - 80.08ms - slower ❌
1% - 11%
0.88ms - 7.88ms
branch 958 kB 71.44ms - 73.16ms faster ✔
1% - 10%
0.88ms - 7.88ms
-

light-dom-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 729.37ms - 741.39ms - slower ❌
1% - 6%
8.19ms - 43.09ms
branch 958 kB 693.36ms - 726.12ms faster ✔
1% - 6%
8.19ms - 43.09ms
-

contextual-help permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 944 kB 110.04ms - 116.12ms - faster ✔
4% - 11%
4.21ms - 13.75ms
branch 899 kB 118.38ms - 125.74ms slower ❌
4% - 12%
4.21ms - 13.75ms
-

dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 128.84ms - 135.28ms - unsure 🔍
-3% - +5%
-4.20ms - +6.16ms
branch 760 kB 127.02ms - 135.14ms unsure 🔍
-5% - +3%
-6.16ms - +4.20ms
-

infield-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 39.93ms - 42.95ms - unsure 🔍
-9% - +2%
-3.84ms - +0.72ms
branch 636 kB 41.29ms - 44.71ms unsure 🔍
-2% - +9%
-0.72ms - +3.84ms
-

menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 392.93ms - 413.87ms - unsure 🔍
-5% - +1%
-22.79ms - +4.43ms
branch 716 kB 403.89ms - 421.27ms unsure 🔍
-1% - +6%
-4.43ms - +22.79ms
-

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 795 kB 152.85ms - 160.47ms - faster ✔
7% - 13%
12.15ms - 22.29ms
branch 770 kB 170.54ms - 177.22ms slower ❌
8% - 14%
12.15ms - 22.29ms
-

overlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 666.72ms - 686.72ms - slower ❌
6% - 10%
38.33ms - 59.63ms
branch 1.02 MB 624.10ms - 631.38ms faster ✔
6% - 9%
38.33ms - 59.63ms
-

directive-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 51.92ms - 53.08ms - faster ✔
2% - 5%
1.32ms - 2.92ms
branch 1.02 MB 54.07ms - 55.17ms slower ❌
2% - 6%
1.32ms - 2.92ms
-

element-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.05 MB 681.17ms - 691.19ms - slower ❌
6% - 8%
39.70ms - 52.58ms
branch 1.01 MB 636.00ms - 644.08ms faster ✔
6% - 8%
39.70ms - 52.58ms
-

lazy-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 851 kB 99.08ms - 109.16ms - unsure 🔍
-0% - +10%
-0.37ms - +10.05ms
branch 806 kB 97.96ms - 100.60ms unsure 🔍
-9% - +0%
-10.05ms - +0.37ms
-

picker-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 674 kB 63.28ms - 67.00ms - unsure 🔍
-9% - +0%
-6.30ms - +0.22ms
branch 650 kB 65.50ms - 70.86ms unsure 🔍
-0% - +10%
-0.22ms - +6.30ms
-

picker permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 990.76ms - 1003.44ms - faster ✔
5% - 7%
53.50ms - 75.42ms
branch 774 kB 1052.62ms - 1070.50ms slower ❌
5% - 8%
53.50ms - 75.42ms
-

popover permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 150.37ms - 158.39ms - unsure 🔍
-5% - +2%
-8.38ms - +3.50ms
branch 774 kB 152.44ms - 161.20ms unsure 🔍
-2% - +5%
-3.50ms - +8.38ms
-

search permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 737 kB 87.49ms - 92.63ms - faster ✔
3% - 12%
2.35ms - 11.41ms
branch 713 kB 93.20ms - 100.68ms slower ❌
2% - 13%
2.35ms - 11.41ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 160.53ms - 169.79ms - faster ✔
1% - 9%
2.29ms - 16.51ms
branch 717 kB 169.16ms - 179.96ms slower ❌
1% - 10%
2.29ms - 16.51ms
-

tags permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 712 kB 30.90ms - 34.10ms - unsure 🔍
-8% - +7%
-2.63ms - +2.15ms
branch 688 kB 30.96ms - 34.52ms unsure 🔍
-7% - +8%
-2.15ms - +2.63ms
-

toast permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 696 kB 79.08ms - 85.00ms - faster ✔
3% - 13%
2.25ms - 11.59ms
branch 672 kB 85.35ms - 92.57ms slower ❌
3% - 14%
2.25ms - 11.59ms
-

tooltip permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 87.38ms - 94.14ms - slower ❌
7% - 16%
5.94ms - 13.22ms
branch 912 kB 79.83ms - 82.53ms faster ✔
7% - 14%
5.94ms - 13.22ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 831 kB 52.50ms - 53.46ms - faster ✔
2% - 4%
0.90ms - 2.30ms
branch 792 kB 54.08ms - 55.08ms slower ❌
2% - 4%
0.90ms - 2.30ms
-

test-element permalink

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 156.58ms - 162.70ms - slower ❌
12% - 18%
17.51ms - 25.17ms
branch 912 kB 135.99ms - 140.61ms faster ✔
11% - 16%
17.51ms - 25.17ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 932 kB 92.51ms - 95.81ms - faster ✔
23% - 29%
27.76ms - 37.84ms
branch 887 kB 122.20ms - 131.72ms slower ❌
29% - 40%
27.76ms - 37.84ms
-

truncated permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 789 kB 119.71ms - 127.89ms - unsure 🔍
-5% - +4%
-6.30ms - +4.50ms
branch 762 kB 121.18ms - 128.22ms unsure 🔍
-4% - +5%
-4.50ms - +6.30ms
-


// This fails but when manually tested it works in the browser
// in the test it shows that the tooltip is open (overlayTrigger.open === 'hover')
// expect(overlayTrigger.open).to.be.undefined;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would appreciate any feedback/ideas on why would this be flaky, couldn't yet figure out why this would fail if manually tested it works.

Copy link
Contributor

Choose a reason for hiding this comment

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

iinnnteresting

await closed;

// Manually testing this in the browser doesn't fail without the handleKeyup method but it should
// expect(overlayTrigger.open).to.equal('hover');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same thing here as in the previous test.

@mizgaionutalexandru mizgaionutalexandru marked this pull request as ready for review November 7, 2024 13:37
@mizgaionutalexandru mizgaionutalexandru requested a review from a team as a code owner November 7, 2024 13:37
@Rajdeepc
Copy link
Contributor

@mizgaionutalexandru Thanks for doing this! Shaping up well! By any chance were you able to test this in a touch interface?

@mizgaionutalexandru
Copy link
Contributor Author

@mizgaionutalexandru Thanks for doing this! Shaping up well! By any chance were you able to test this in a touch interface?

Yes, I have tested this on mobile and tablet simulators as well as a real iPad device. It seems to work just fine. I don't know why the written tests fail though.

Copy link
Contributor

@TarunAdobe TarunAdobe left a comment

Choose a reason for hiding this comment

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

This needs to be updated so as to make sure the hover tooltip opens in the following case on other browsers too.

  1. Click on the trigger open the popover
  2. press escape
    (expect the hover to be opened again)

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.

5 participants