ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-link lost it's focus when user clicks the ui5-link and opens another tab, then click the originating tab

Open boyetp123 opened this issue 5 years ago • 6 comments

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

boyetp123 avatar Jun 29 '21 00:06 boyetp123

Hello @boyetp123 ,

I tried to reproduce the issue but I couldn't.

Here is what I tried and it works as expected:

  1. Visit https://sap.github.io/ui5-webcomponents/playground/components/Link/
  2. Click the Standard Link link (first link on the Link sample subview)
  3. A new page is open ( https://www.sap.com/index.html )
  4. Go back to the original tab
  5. 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

plamenivanov91 avatar Jun 29 '21 09:06 plamenivanov91

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.

boyetp123 avatar Jun 29 '21 09:06 boyetp123

Hello @boyetp123

Yes it is.

Did you try to reproduce it with my described steps ?

Regards, Plamen Ivanov

plamenivanov91 avatar Jun 29 '21 09:06 plamenivanov91

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.

boyetp123 avatar Jun 29 '21 10:06 boyetp123

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

plamenivanov91 avatar Jun 29 '21 12:06 plamenivanov91

Hello @boyetp123 Closing the issue due to inactivity. Feel free to comment with more details and we will re-open the issue.

ilhan007 avatar Jul 23 '21 10:07 ilhan007