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(action-button): action-button with href can be perceived by screen reader #4927

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

Conversation

nikkimk
Copy link
Contributor

@nikkimk nikkimk commented Nov 8, 2024

Description

<sp-button> and <sp-action-button> with href could not be activated by mouse-click or screenreader click.

  • Updated ButtonBase to allow clicks when there is an href attribute set.
  • Added click unit tests to both <sp-button> and <sp-action-button> .
  • Added stories for <sp-action-button> with an href attribute.

Related issue(s)

How has this been tested?

Screenshots (if appropriate)

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.

@nikkimk nikkimk linked an issue Nov 8, 2024 that may be closed by this pull request
1 task
Copy link

github-actions bot commented Nov 8, 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.

@nikkimk nikkimk marked this pull request as ready for review November 8, 2024 21:36
@nikkimk nikkimk requested a review from a team as a code owner November 8, 2024 21:36
Copy link

github-actions bot commented Nov 8, 2024

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.99 0.99 0.98
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 251.254 kB 236.667 kB 🏆 236.691 kB
Scripts 61.408 kB 54.077 kB 🏆 54.226 kB
Stylesheet 53.684 kB 48.05 kB 48.03 kB 🏆
Document 6.224 kB 5.466 kB 5.461 kB 🏆
Font 126.956 kB 126.672 kB 126.624 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

@coveralls
Copy link
Collaborator

coveralls commented Nov 8, 2024

Pull Request Test Coverage Report for Build 11863201408

Details

  • 25 of 25 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.008%) to 98.203%

Totals Coverage Status
Change from base Build 11859867829: 0.008%
Covered Lines: 32340
Relevant Lines: 32755

💛 - Coveralls

Copy link

github-actions bot commented Nov 8, 2024

Tachometer results

Chrome

action-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 59.44ms - 64.42ms - faster ✔
2% - 12%
1.45ms - 7.84ms
branch 715 kB 64.57ms - 68.57ms slower ❌
2% - 13%
1.45ms - 7.84ms
-

action-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 814 kB 89.78ms - 95.44ms - unsure 🔍
-6% - +2%
-6.16ms - +2.01ms
branch 770 kB 91.74ms - 97.63ms unsure 🔍
-2% - +7%
-2.01ms - +6.16ms
-

action-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 836 kB 63.93ms - 76.15ms - unsure 🔍
-14% - +6%
-10.13ms - +4.59ms
branch 793 kB 68.71ms - 76.92ms unsure 🔍
-7% - +15%
-4.59ms - +10.13ms
-

action-menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 959 kB 178.24ms - 190.56ms - unsure 🔍
-8% - +1%
-14.73ms - +2.42ms
branch 916 kB 184.58ms - 196.52ms unsure 🔍
-1% - +8%
-2.42ms - +14.73ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 917 kB 86.84ms - 92.25ms - faster ✔
3% - 13%
2.63ms - 12.55ms
branch 874 kB 92.98ms - 101.29ms slower ❌
3% - 14%
2.63ms - 12.55ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 916 kB 85.91ms - 92.48ms - unsure 🔍
-10% - +1%
-9.50ms - +0.79ms
branch 873 kB 89.59ms - 97.51ms unsure 🔍
-1% - +11%
-0.79ms - +9.50ms
-

test-open-close-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1897.31ms - 1911.51ms - unsure 🔍
-0% - +1%
-0.63ms - +15.83ms
branch 1.05 MB 1892.65ms - 1900.97ms unsure 🔍
-1% - +0%
-15.83ms - +0.63ms
-

test-open-close permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1900.08ms - 1909.31ms - unsure 🔍
-0% - +0%
-5.38ms - +8.75ms
branch 1.05 MB 1897.65ms - 1908.36ms unsure 🔍
-0% - +0%
-8.75ms - +5.38ms
-

alert-banner permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 689 kB 15.70ms - 17.78ms - unsure 🔍
-8% - +7%
-1.42ms - +1.19ms
branch 664 kB 16.06ms - 17.64ms unsure 🔍
-7% - +9%
-1.19ms - +1.42ms
-

alert-dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 128.06ms - 137.00ms - unsure 🔍
-9% - +2%
-11.89ms - +2.21ms
branch 696 kB 131.92ms - 142.82ms unsure 🔍
-2% - +9%
-2.21ms - +11.89ms
-

breadcrumbs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 979 kB 599.93ms - 615.61ms - faster ✔
1% - 5%
7.98ms - 32.82ms
branch 935 kB 618.53ms - 637.80ms slower ❌
1% - 5%
7.98ms - 32.82ms
-

button-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 731 kB 55.33ms - 60.39ms - unsure 🔍
-10% - +1%
-5.99ms - +0.54ms
branch 688 kB 58.52ms - 62.65ms unsure 🔍
-1% - +11%
-0.54ms - +5.99ms
-

button permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 60.11ms - 64.65ms - unsure 🔍
-8% - +2%
-5.08ms - +1.06ms
branch 696 kB 62.32ms - 66.45ms unsure 🔍
-2% - +8%
-1.06ms - +5.08ms
-

coachmark permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 910 kB 115.13ms - 124.76ms - unsure 🔍
-10% - +1%
-13.13ms - +1.96ms
branch 864 kB 119.72ms - 131.34ms unsure 🔍
-2% - +11%
-1.96ms - +13.13ms
-

combobox permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 49.79ms - 52.98ms - unsure 🔍
-4% - +4%
-2.12ms - +2.24ms
branch 957 kB 49.84ms - 52.81ms unsure 🔍
-4% - +4%
-2.24ms - +2.12ms
-

light-dom-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 476.28ms - 491.80ms - faster ✔
2% - 7%
8.78ms - 33.17ms
branch 957 kB 495.61ms - 514.42ms slower ❌
2% - 7%
8.78ms - 33.17ms
-

contextual-help permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 944 kB 62.18ms - 71.16ms - unsure 🔍
-10% - +5%
-7.09ms - +3.38ms
branch 898 kB 65.82ms - 71.22ms unsure 🔍
-5% - +11%
-3.38ms - +7.09ms
-

dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 101.49ms - 113.10ms - unsure 🔍
-7% - +5%
-7.47ms - +5.91ms
branch 759 kB 104.75ms - 111.40ms unsure 🔍
-6% - +7%
-5.91ms - +7.47ms
-

infield-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 20.58ms - 22.93ms - unsure 🔍
-15% - +0%
-3.53ms - +0.08ms
branch 636 kB 22.11ms - 24.85ms unsure 🔍
-1% - +17%
-0.08ms - +3.53ms
-

menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 260.67ms - 274.46ms - unsure 🔍
-6% - +1%
-16.32ms - +3.00ms
branch 716 kB 267.46ms - 281.00ms unsure 🔍
-1% - +6%
-3.00ms - +16.32ms
-

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 795 kB 92.70ms - 103.70ms - faster ✔
3% - 15%
2.77ms - 16.23ms
branch 770 kB 103.82ms - 111.58ms slower ❌
2% - 17%
2.77ms - 16.23ms
-

overlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 984 kB 547.77ms - 571.04ms - unsure 🔍
-2% - +4%
-13.60ms - +23.12ms
branch 939 kB 540.44ms - 568.85ms unsure 🔍
-4% - +2%
-23.12ms - +13.60ms
-

directive-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 31.03ms - 33.71ms - faster ✔
7% - 19%
2.51ms - 7.41ms
branch 1.02 MB 35.28ms - 39.39ms slower ❌
7% - 23%
2.51ms - 7.41ms
-

element-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.05 MB 447.21ms - 469.37ms - unsure 🔍
-5% - +1%
-25.84ms - +6.74ms
branch 1.01 MB 455.89ms - 479.78ms unsure 🔍
-2% - +6%
-6.74ms - +25.84ms
-

lazy-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 851 kB 54.17ms - 59.16ms - faster ✔
2% - 13%
1.06ms - 8.42ms
branch 805 kB 58.70ms - 64.11ms slower ❌
2% - 15%
1.06ms - 8.42ms
-

picker-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 674 kB 39.17ms - 45.72ms - unsure 🔍
-7% - +15%
-2.75ms - +5.99ms
branch 650 kB 37.94ms - 43.72ms unsure 🔍
-14% - +6%
-5.99ms - +2.75ms
-

picker permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 603.68ms - 637.23ms - faster ✔
2% - 9%
13.30ms - 57.23ms
branch 774 kB 641.54ms - 669.89ms slower ❌
2% - 9%
13.30ms - 57.23ms
-

popover permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 142.95ms - 153.77ms - faster ✔
1% - 10%
1.32ms - 16.62ms
branch 774 kB 151.91ms - 162.74ms slower ❌
1% - 11%
1.32ms - 16.62ms
-

search permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 737 kB 53.67ms - 58.28ms - unsure 🔍
-9% - +1%
-5.50ms - +0.36ms
branch 713 kB 56.73ms - 60.35ms unsure 🔍
-1% - +10%
-0.36ms - +5.50ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 108.98ms - 120.19ms - unsure 🔍
-13% - -0%
-16.27ms - +0.15ms
branch 717 kB 116.65ms - 128.65ms unsure 🔍
-0% - +14%
-0.15ms - +16.27ms
-

tags permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 712 kB 18.30ms - 19.91ms - unsure 🔍
-1% - +11%
-0.22ms - +1.90ms
branch 688 kB 17.57ms - 18.95ms unsure 🔍
-10% - +1%
-1.90ms - +0.22ms
-

toast permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 696 kB 39.22ms - 44.61ms - unsure 🔍
-15% - -0%
-7.00ms - +0.01ms
branch 672 kB 43.16ms - 47.65ms unsure 🔍
-0% - +17%
-0.01ms - +7.00ms
-

tooltip permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 870 kB 47.28ms - 52.42ms - unsure 🔍
-9% - +5%
-4.68ms - +2.72ms
branch 830 kB 48.17ms - 53.49ms unsure 🔍
-6% - +9%
-2.72ms - +4.68ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 831 kB 31.72ms - 34.57ms - faster ✔
7% - 18%
2.45ms - 6.85ms
branch 788 kB 36.11ms - 39.47ms slower ❌
7% - 21%
2.45ms - 6.85ms
-

test-element permalink

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 70.04ms - 78.25ms - unsure 🔍
-9% - +5%
-6.72ms - +3.60ms
branch 910 kB 72.57ms - 78.83ms unsure 🔍
-5% - +9%
-3.60ms - +6.72ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 932 kB 57.16ms - 62.64ms - faster ✔
1% - 12%
0.30ms - 7.72ms
branch 886 kB 61.40ms - 66.41ms slower ❌
0% - 13%
0.30ms - 7.72ms
-

truncated permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 789 kB 76.30ms - 81.60ms - unsure 🔍
-9% - +1%
-7.87ms - +1.05ms
branch 761 kB 78.78ms - 85.95ms unsure 🔍
-1% - +10%
-1.05ms - +7.87ms
-
Firefox

action-bar permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 120.30ms - 126.74ms - unsure 🔍
-7% - +0%
-8.95ms - +0.63ms
branch 715 kB 124.13ms - 131.23ms unsure 🔍
-1% - +7%
-0.63ms - +8.95ms
-

action-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 814 kB 165.08ms - 173.16ms - unsure 🔍
-7% - -0%
-12.42ms - +0.02ms
branch 770 kB 170.59ms - 180.05ms unsure 🔍
-0% - +7%
-0.02ms - +12.42ms
-

action-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 836 kB 116.99ms - 126.17ms - unsure 🔍
-8% - +2%
-9.62ms - +2.34ms
branch 793 kB 121.38ms - 129.06ms unsure 🔍
-2% - +8%
-2.34ms - +9.62ms
-

action-menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 959 kB 285.42ms - 288.58ms - faster ✔
15% - 16%
49.12ms - 55.52ms
branch 916 kB 336.53ms - 342.11ms slower ❌
17% - 19%
49.12ms - 55.52ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 917 kB 156.19ms - 159.93ms - slower ❌
6% - 9%
9.11ms - 13.61ms
branch 874 kB 145.44ms - 147.96ms faster ✔
6% - 9%
9.11ms - 13.61ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 916 kB 142.79ms - 150.93ms - unsure 🔍
-3% - +4%
-4.65ms - +5.17ms
branch 873 kB 143.85ms - 149.35ms unsure 🔍
-4% - +3%
-5.17ms - +4.65ms
-

test-open-close-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1891.16ms - 1898.64ms - faster ✔
0% - 1%
7.79ms - 19.17ms
branch 1.05 MB 1904.09ms - 1912.67ms slower ❌
0% - 1%
7.79ms - 19.17ms
-

test-open-close permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.09 MB 1896.63ms - 1901.09ms - unsure 🔍
-0% - -0%
-9.14ms - -0.94ms
branch 1.05 MB 1900.46ms - 1907.34ms unsure 🔍
+0% - +0%
+0.94ms - +9.14ms
-

alert-banner permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 689 kB 30.69ms - 33.67ms - unsure 🔍
-5% - +7%
-1.43ms - +2.35ms
branch 664 kB 30.55ms - 32.89ms unsure 🔍
-7% - +4%
-2.35ms - +1.43ms
-

alert-dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 209.08ms - 219.48ms - unsure 🔍
-3% - +4%
-7.13ms - +8.65ms
branch 696 kB 207.59ms - 219.45ms unsure 🔍
-4% - +3%
-8.65ms - +7.13ms
-

breadcrumbs permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 979 kB 846.88ms - 875.20ms - unsure 🔍
-3% - +0%
-27.40ms - +3.44ms
branch 935 kB 866.92ms - 879.12ms unsure 🔍
-0% - +3%
-3.44ms - +27.40ms
-

button-group permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 731 kB 107.93ms - 117.95ms - unsure 🔍
-10% - +0%
-12.07ms - +0.19ms
branch 688 kB 115.35ms - 122.41ms unsure 🔍
-0% - +11%
-0.19ms - +12.07ms
-

button permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 739 kB 125.85ms - 133.23ms - unsure 🔍
-7% - +0%
-9.21ms - +0.53ms
branch 696 kB 130.71ms - 137.05ms unsure 🔍
-0% - +7%
-0.53ms - +9.21ms
-

coachmark permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 910 kB 203.89ms - 210.99ms - faster ✔
3% - 7%
5.75ms - 15.25ms
branch 864 kB 214.79ms - 221.09ms slower ❌
3% - 7%
5.75ms - 15.25ms
-

combobox permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 70.98ms - 75.02ms - unsure 🔍
-3% - +3%
-2.41ms - +1.93ms
branch 957 kB 72.46ms - 74.02ms unsure 🔍
-3% - +3%
-1.93ms - +2.41ms
-

light-dom-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1 MB 753.43ms - 775.05ms - slower ❌
4% - 8%
25.93ms - 54.11ms
branch 957 kB 715.18ms - 733.26ms faster ✔
3% - 7%
25.93ms - 54.11ms
-

contextual-help permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 944 kB 111.53ms - 116.95ms - faster ✔
2% - 9%
1.88ms - 11.04ms
branch 898 kB 117.01ms - 124.39ms slower ❌
2% - 10%
1.88ms - 11.04ms
-

dialog permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 802 kB 127.90ms - 135.38ms - unsure 🔍
-6% - +2%
-8.31ms - +2.47ms
branch 759 kB 130.68ms - 138.44ms unsure 🔍
-2% - +6%
-2.47ms - +8.31ms
-

infield-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 661 kB 40.90ms - 43.78ms - unsure 🔍
-9% - +0%
-4.21ms - +0.25ms
branch 636 kB 42.61ms - 46.03ms unsure 🔍
-1% - +10%
-0.25ms - +4.21ms
-

menu permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 401.02ms - 420.10ms - unsure 🔍
-3% - +2%
-14.41ms - +8.09ms
branch 716 kB 407.75ms - 419.69ms unsure 🔍
-2% - +4%
-8.09ms - +14.41ms
-

number-field permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 795 kB 154.62ms - 162.66ms - faster ✔
6% - 13%
11.11ms - 22.37ms
branch 770 kB 171.43ms - 179.33ms slower ❌
7% - 14%
11.11ms - 22.37ms
-

overlay permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 674.92ms - 695.12ms - slower ❌
7% - 10%
43.19ms - 63.85ms
branch 1.01 MB 629.34ms - 633.66ms faster ✔
6% - 9%
43.19ms - 63.85ms
-

directive-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.06 MB 52.31ms - 53.45ms - faster ✔
2% - 5%
1.22ms - 2.74ms
branch 1.02 MB 54.37ms - 55.35ms slower ❌
2% - 5%
1.22ms - 2.74ms
-

element-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 1.05 MB 682.22ms - 689.18ms - slower ❌
7% - 8%
42.99ms - 51.25ms
branch 1.01 MB 636.35ms - 640.81ms faster ✔
6% - 7%
42.99ms - 51.25ms
-

lazy-test permalink

Version Bytes Avg Time vs remote vs branch
npm latest 851 kB 94.43ms - 102.05ms - unsure 🔍
-6% - +2%
-6.19ms - +1.91ms
branch 805 kB 99.01ms - 101.75ms unsure 🔍
-2% - +6%
-1.91ms - +6.19ms
-

picker-button permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 674 kB 63.28ms - 67.64ms - unsure 🔍
-8% - +1%
-5.40ms - +1.00ms
branch 650 kB 65.32ms - 70.00ms unsure 🔍
-2% - +8%
-1.00ms - +5.40ms
-

picker permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 994.16ms - 1003.88ms - faster ✔
5% - 7%
53.13ms - 76.03ms
branch 774 kB 1053.24ms - 1073.96ms slower ❌
5% - 8%
53.13ms - 76.03ms
-

popover permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 817 kB 149.84ms - 157.12ms - unsure 🔍
-7% - +0%
-11.30ms - +0.34ms
branch 774 kB 154.43ms - 163.49ms unsure 🔍
-0% - +7%
-0.34ms - +11.30ms
-

search permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 737 kB 87.04ms - 92.80ms - faster ✔
2% - 10%
1.34ms - 9.90ms
branch 713 kB 92.38ms - 98.70ms slower ❌
1% - 11%
1.34ms - 9.90ms
-

slider permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 741 kB 162.32ms - 169.56ms - faster ✔
2% - 9%
3.18ms - 15.62ms
branch 717 kB 170.29ms - 180.39ms slower ❌
2% - 9%
3.18ms - 15.62ms
-

tags permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 712 kB 30.37ms - 33.15ms - unsure 🔍
-9% - +4%
-3.12ms - +1.32ms
branch 688 kB 30.93ms - 34.39ms unsure 🔍
-4% - +10%
-1.32ms - +3.12ms
-

toast permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 696 kB 71.92ms - 78.00ms - unsure 🔍
-9% - +1%
-7.34ms - +0.82ms
branch 672 kB 75.50ms - 80.94ms unsure 🔍
-1% - +10%
-0.82ms - +7.34ms
-

tooltip permalink

test-basic

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 85.45ms - 91.87ms - slower ❌
8% - 20%
6.84ms - 15.40ms
branch 910 kB 74.71ms - 80.37ms faster ✔
8% - 17%
6.84ms - 15.40ms
-

test-directive permalink

Version Bytes Avg Time vs remote vs branch
npm latest 831 kB 50.57ms - 52.39ms - faster ✔
1% - 6%
0.59ms - 2.97ms
branch 788 kB 52.48ms - 54.04ms slower ❌
1% - 6%
0.59ms - 2.97ms
-

test-element permalink

Version Bytes Avg Time vs remote vs branch
npm latest 956 kB 148.39ms - 153.37ms - slower ❌
9% - 15%
12.33ms - 20.11ms
branch 910 kB 131.67ms - 137.65ms faster ✔
8% - 13%
12.33ms - 20.11ms
-

test-lazy permalink

Version Bytes Avg Time vs remote vs branch
npm latest 932 kB 91.27ms - 95.17ms - faster ✔
21% - 28%
25.51ms - 35.77ms
branch 886 kB 119.11ms - 128.61ms slower ❌
27% - 39%
25.51ms - 35.77ms
-

truncated permalink

basic-test

Version Bytes Avg Time vs remote vs branch
npm latest 789 kB 111.49ms - 118.43ms - unsure 🔍
-7% - +2%
-8.27ms - +2.55ms
branch 761 kB 113.67ms - 121.97ms unsure 🔍
-2% - +7%
-2.55ms - +8.27ms
-

caseyisonit
caseyisonit previously approved these changes Nov 9, 2024
packages/button/src/ButtonBase.ts Outdated Show resolved Hide resolved
packages/button/src/ButtonBase.ts Show resolved Hide resolved
@@ -76,25 +85,17 @@ export class ButtonBase extends ObserveSlotText(LikeAnchor(Focusable), '', [
});
}

public override click(): void {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This event is only firing when with a programatic click()--like in parent components or in the majority of our tests. It is not firing with a mouse click (or, by extension, a VoiceOver click (i.e. CTRL+Option+Space. I removed it and made sure this functionality was in handleClickCapture() function which is called by the click event listener in the constructor(), which is fired by programatic and mouse clicks.

@nikkimk
Copy link
Contributor Author

nikkimk commented Nov 11, 2024

@Rajdeepc Rajdeepc changed the title fix(action-button): action-button with href cannot be activated by screen reader fix(action-button): action-button with href can be perceived by screen reader Nov 13, 2024
Copy link
Contributor

@Rajdeepc Rajdeepc left a comment

Choose a reason for hiding this comment

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

Nearly there! Also I see an action-button with href is not in our docs site! Can you please add an example so that the users are aware of its usage

packages/action-button/test/action-button.test.ts Outdated Show resolved Hide resolved
Rajdeepc
Rajdeepc previously approved these changes Nov 13, 2024
@Rajdeepc
Copy link
Contributor

@nikkimk Can you please make sure the tests are passing and surface up a new hash so that the VRTs are clean! Thanks

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.

[Bug]: Action-button with href cannot be activated by screen reader
5 participants