Skip to content

Landmark loses focus to the body when user switches to a separate tab or window #2957

@LFDanLu

Description

@LFDanLu

🐛 Bug Report

Discovered in 3/14/22 testing:

  • Only in chrome, focus is lost to the body. Navigate to "Navigation Landmark with F6", then click on a different chrome tab then click back on the tab with the landmark. Same thing but with going to a different window.

When a fix for the above is done, double check the below:
"In FF, leaving the tab and coming back, focus appears to be lost
I've made my own nerdefocus adding a custom style *:focus {border: 1px solid red;}
though, in the console, entering document.activeElement does give the correct element. so I'm not sure why no ring is shown"

If the above isn't fixed by the preceding fix or is not related, feel free to split out into a separate issue

🤔 Expected Behavior

Focus should be restored to the landmark upon returning to the window

😯 Current Behavior

Focus is lost to the body

🧢 Your Company/Team

RSP

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions