Unverified Commit d1a43619 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

[Fast Refresh] Add Titles for Click to Open Action (#12427)

parent 5787cbd9
......@@ -57,7 +57,12 @@ export const CodeFrame: React.FC<CodeFrameProps> = function CodeFrame({
// TODO: make the caret absolute
return (
<div data-nextjs-codeframe>
<p role="link" onClick={open} tabIndex={0}>
<p
role="link"
onClick={open}
tabIndex={0}
title="Click to open in your editor"
>
<span>
{getFrameSource(stackFrame)} @ {stackFrame.methodName}
</span>
......
......@@ -40,6 +40,7 @@ const CallStackFrame: React.FC<{
tabIndex={hasSource ? 0 : undefined}
role={hasSource ? 'link' : undefined}
onClick={open}
title={hasSource ? 'Click to open in your editor' : undefined}
>
<span>{getFrameSource(f)}</span>
<svg
......
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