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

MDN Docs with interactive examples auto-focus on example code, breaking keyboard navigation #779

Closed
sushant-j opened this issue Mar 28, 2018 · 4 comments

Comments

@sushant-j
Copy link

Description:
When referring MDN docs with new, interactive examples, keyboard focus is automatically switched to the example code. This makes navigating with keyboard shortcuts impossible.

Steps to reproduce:

  1. Search for any CSS property which has an interactive example on MDN docs.
    [E.g. background-size, transform, etc.]
  2. Press enter to open the docs in right, preview pane for Devdocs.
  3. Observe that keyboard focus is now on interactive example code, and navigation in left pane is not possible.

Environment

  • OS: Linux Ubuntu 16.04.4
  • Browser: Chrome - Version 65.0.3325.146 (64-bit)
@j-f1 j-f1 added the docs/bug label Mar 28, 2018
@jmerle
Copy link
Contributor

jmerle commented Oct 6, 2018

Fixed in mdn/interactive-examples#1158. This can be closed.

@j-f1 j-f1 added docs/update and removed docs/bug labels Oct 7, 2018
@jmerle
Copy link
Contributor

jmerle commented Oct 7, 2018

I don't think the MDN docs need an update to fix this issue. DevDocs shows the interactive examples inside iframes, so DevDocs automatically uses the latest version of the source of the interactive examples, which now comes without the auto-focus thing.

I can't really explain it, but just try to reproduce the issue and you'll see that it's gone.

@j-f1 j-f1 removed the docs/update label Oct 7, 2018
@j-f1 j-f1 closed this as completed Oct 7, 2018
@j-f1
Copy link
Contributor

j-f1 commented Oct 7, 2018

Thanks for clarifying @jmerle!

@vaaski
Copy link

vaaski commented Jun 8, 2021

this issue seems to be back, it autofocuses the code block on this page, breaking keyboard navigation.

not sure if it's related to the same mdn thread so i'm pining here.

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

No branches or pull requests

4 participants