Skip to content

Commit d3b403d

Browse files
huv1ktimsuchanek
authored andcommitted
Adding docs link (#584)
1 parent fc66ca6 commit d3b403d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/graphql-playground-react/src/components/Playground/GraphQLEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ class GraphQLEditor extends React.PureComponent<
414414
}
415415

416416
handleClickReference = reference => {
417-
//
417+
this.docExplorerComponent.showDocFromType(reference.field)
418418
}
419419

420420
/**

packages/graphql-playground-react/src/styles/graphiql_dark.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,10 @@ span.CodeMirror-selectedtext {
12941294
z-index: 100;
12951295
}
12961296

1297+
.CodeMirror-jump-token {
1298+
text-decoration: underline;
1299+
}
1300+
12971301
.CodeMirror-lint-mark-error,
12981302
.CodeMirror-lint-mark-warning {
12991303
background-position: left bottom;

packages/graphql-playground-react/src/styles/graphiql_light.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,10 @@ p:first-child,
13241324
z-index: 100;
13251325
}
13261326

1327+
.docs-graphiql .CodeMirror-jump-token {
1328+
text-decoration: underline;
1329+
}
1330+
13271331
.docs-graphiql .CodeMirror-lint-mark-error,
13281332
.CodeMirror-lint-mark-warning {
13291333
background-position: left bottom;

0 commit comments

Comments
 (0)