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:Press Tab twice to focus on the upload button #520

Closed
wants to merge 4 commits into from

Conversation

liangkuku
Copy link

When the upload button wrapper span has the tabIndex attribute, pressing the tab key will first focus on the span element, and then pressing tab again will focus on the button element.I removed span tabIndex attribute. issue link 45922

Copy link

vercel bot commented Nov 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
upload ❌ Failed (Inspect) Nov 17, 2023 1:08pm

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3dacfff) 87.10% compared to head (abbd1b5) 87.10%.
Report is 1 commits behind head on master.

❗ Current head abbd1b5 differs from pull request most recent head c08c679. Consider uploading reports for the commit c08c679 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #520   +/-   ##
=======================================
  Coverage   87.10%   87.10%           
=======================================
  Files           6        6           
  Lines         256      256           
  Branches       63       63           
=======================================
  Hits          223      223           
  Misses         33       33           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yoyo837
Copy link
Member

yoyo837 commented Nov 17, 2023

Please add some test case for it.

@liangkuku
Copy link
Author

add some test case

have updated

@@ -865,4 +865,9 @@ describe('uploader', () => {
expect(wrapper.find('.bamboo-input').props().style.color).toEqual('red');
expect(wrapper.find('input').props().style.display).toBe('none');
});

it('the upload button wrapper span does not have the tabIndex attribute', () => {
Copy link
Member

Choose a reason for hiding this comment

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

I think the test case here should verify the number of times to focus.

@liangkuku liangkuku closed this Nov 26, 2023
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.

2 participants