ui5-link lost it's focus when user clicks the ui5-link and opens another tab, then click the originating tab
when a ui5-link is click by the user and opens another browser's tab (target="_blank")
Expected:
when the user clicks the originating tab, the last clicked link should be on focus
Observe: when the user clicks the originating tab, the last clicked link is not on focus, this is an acessibility issue
Hello @boyetp123 ,
I tried to reproduce the issue but I couldn't.
Here is what I tried and it works as expected:
- Visit https://sap.github.io/ui5-webcomponents/playground/components/Link/
- Click the Standard Link link (first link on the Link sample subview)
- A new page is open ( https://www.sap.com/index.html )
- Go back to the original tab
- Standard Link is focused
The link DOM element has its target attribute set to _blank as described in your use case.
Could you verify that everything is working as expected?
Regards, Plamen Ivanov
Hi there, the issue is very reproduceable.
Just like a regular anchor tag with a target of _blank this will open a mew tab. Then go back to he previious tab. And check the link that you just click.
Is it in focus?
Sent from my iPhone
On Jun 29, 2021, at 5:10 PM, Plamen Ivanov @.***> wrote:
Hello @boyetp123 ,
I tried to reproduce the issue but I couldn't.
Here is what I tried and it works as expected:
Visit https://sap.github.io/ui5-webcomponents/playground/components/Link/ Click the Standard Link link (first link on the Link sample subview) A new page is open ( https://www.sap.com/index.html ) Go back to the original tab Standard Link is focused The link DOM element has its target attribute set to _blank as described in your use case.
Could you verify that everything is working as expected?
Regards, Plamen Ivanov
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Hello @boyetp123
Yes it is.
Did you try to reproduce it with my described steps ?
Regards, Plamen Ivanov
Hi Plamen,
The link works just fine except for the link does not get the focus when the user goes back ro the original tab
Sent from my iPhone
On Jun 29, 2021, at 5:52 PM, Plamen Ivanov @.***> wrote:
Hello @boyetp123
Yes it is.
Did you tried to reproduce it with my described steps ?
Regards, Plamen Ivanov
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Hello @boyetp123 ,
I created a video which proves my point from my first comment.
https://user-images.githubusercontent.com/13866865/123793118-0b644680-d8ea-11eb-8663-7565ba263f10.mp4
Here is my work environment: "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
I also contacted one of my colleagues which uses MacOS and he doesn't experience any issues.
If you are using phone, it's not expected to see focus.
If you want us to proceed investigating the issue, please provide a working code snippet in here https://codesandbox.io/. You can also provide your exact work environment information as I did above.
I am afraid I'll have to close this issue if you don't do so.
Regards, Plamen Ivanov
Hello @boyetp123 Closing the issue due to inactivity. Feel free to comment with more details and we will re-open the issue.