Minor Changes
-
#2191
eb8af7b5
Thanks @n1ru4l! - Allow inserting content before the topBar element via thebeforeTopBarContent
property.<GraphiQL beforeTopBarContent={<SomeComponent />} />
-
#2189
96d47267
Thanks @n1ru4l! - Apply variable editor title text styles via classvariable-editor-title-text
instead of using inline-styles. This allows better customization of styles. An active element also has the classactive
. This allows overriding the inactive state color using the selector.graphiql-container .variable-editor-title-text
and overriding the active state color using the selector.graphiql-container .variable-editor-title-text.active
. -
#2190
d5179899
Thanks @n1ru4l! - New callback propertyonSchemaChange
forGraphiQL
.The callback is invoked with the successfully fetched schema from the remote.
Usage example:
<GraphiQL onSchemaChange={schema => console.log(schema)} />