You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[graphiql] Global .monaco-editor .highlight rule recolors every Monaco editor on the page #4766
Monaco uses .highlight for matched characters in the suggest widget, quick input, find widget and references peek. So once GraphiQL's CSS is loaded, every Monaco editor on the page turns those matches green, not just GraphiQL's. Because of the !important, the host app has a hard time undoing it.
In a single-page app the stylesheet stays loaded after you leave the GraphiQL page, so it affects Monaco editors across the whole app.
Could it be scoped to GraphiQL, e.g. .graphiql-container .monaco-editor .highlight, and drop the !important? The .overflow-guard rule next to it has the same problem (#4088).
Activity