Unverified Commit 9fd385a8 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[dev-overlay] Remove positive tab-index (#80289)

Can be disorienting if more focusable content is added. See https://dequeuniversity.com/tips/tabindex-positive-numbers
parent 27259738
...@@ -120,7 +120,6 @@ export function PseudoHtmlDiff({ ...@@ -120,7 +120,6 @@ export function PseudoHtmlDiff({
data-nextjs-container-errors-pseudo-html-collapse={isDiffCollapsed} data-nextjs-container-errors-pseudo-html-collapse={isDiffCollapsed}
> >
<button <button
tabIndex={10} // match CallStackFrame
data-nextjs-container-errors-pseudo-html-collapse-button data-nextjs-container-errors-pseudo-html-collapse-button
onClick={() => toggleCollapseHtml(!isDiffCollapsed)} onClick={() => toggleCollapseHtml(!isDiffCollapsed)}
> >
......
...@@ -19,7 +19,6 @@ export function EditorLink({ file, location }: EditorLinkProps) { ...@@ -19,7 +19,6 @@ export function EditorLink({ file, location }: EditorLinkProps) {
<div <div
data-with-open-in-editor-link data-with-open-in-editor-link
data-with-open-in-editor-link-import-trace data-with-open-in-editor-link-import-trace
tabIndex={10}
role={'link'} role={'link'}
onClick={open} onClick={open}
title={'Click to open in your editor'} title={'Click to open in your editor'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment