-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No visible cursor #790
Comments
Inspecting the CSS, the element with the |
+1 |
This is compounded by autocomplete (#714) - I hit enter to try to go to the next line, but it accepts the autocomplete and since I can't see the cursor, I don't actually know where I am until I start typing on the wrong line. |
Is there a known workaround for this as yet? |
Any news abou this? |
Here's a simple work-around that I'm using: Using the browser extension Stylus, add the following CSS to the page:
It might not do everything the cursor is supposed to do, but at least you can see it. |
Just upgraded to Apollo 2.0 and am running into this problem as well. :( |
Definitely not ideal... but I figured out a way to have a visible cursor in the meantime.
|
The underline and block cursors work, might be simpler to just use those. |
For me it did not work either. |
Also having this issue with apollo server 2.0 |
The css of @ryanwiesjahn works! To use the css every time you open the playground create a bookmark and change the url of the bookmark to this:
Then when you go to the GraphQL playground or refresh the page just push this bookmark to insert the css of @ryanwiesjahn and make the cursor visible again. Tested in Google Chrome. |
I hope this could be fixed soon. It's almost impossible to use without the cursor. |
Thanks @ryanwiesjahn, with your css it is possible to use the playground! 👍 |
For me, the cursor is invisible and settings don't work at all. They are not applied (theme or cursor type) - nothing changes. My browser is Google Chrome, but in Firefox it is also true. I am using CSS tweaks, found in this thread to make the cursor visible. |
Yes, I can confirm what @gnemtsov said, in my Google Chrome (latest stable release) settings don't work at all. They are saved in the localStorage but are not applied, also after a hard refresh, nothing change. |
I am getting the same issue when using Playground as configured by The issue seems related to the default settings for the property
|
Same problem when upgrading from apollo-server 2.0.0-rc5 to 2.0.0. As a workaround, you can paste your endpoint at https://legacy.graphqlbin.com/new and use that UI. The cursor is visible there. |
Not sure if the issue is apollo-server or graphql-playground but seeing the same issue. Also you can't change to the light theme |
Same here |
+1 - encountered this issue when migrating from Apollo 1 -> Apollo 2 |
+1 Still facing that issue. |
@lpellegr Would you mind explaining or give an example how I would force feed the setting into the configuration object? I tried the following but it didn't work.
|
@lpellegr strange, that code looks correct to me. It works for me with the following code on apollo-server 2.0.0:
Maybe #1516 above will help (if accepted) |
@rdickert I get typescript errors with the above. There is no |
@scf4 Yes. Quick hack is set settings as 'any' type. |
The issue is also on koa server package :/ When you force the settings it works although playground: {
settings: { // Force setting, workaround: https://github.com/prisma/graphql-playground/issues/790
'editor.theme': 'dark',
'editor.cursorShape': 'line' // possible values: 'line', 'block', 'underline'
}
} |
Anyone find a fix for hapi server pkg? |
I can replicate the issue with Opera and Chrome on Windows 10 |
Ha, forcing the settings works. I suspect the issue is still with Playground, though, as it seems not to be reading from the saved settings. The other things I see is that I can't force |
I can confirm that it works by setting the playground cursorShape property:
|
Thank you for this! This worked for me. I was very disappointed to try GraphQLPlayground for the first time, only to find out there is no cursor in the editor. This solved it for me. |
For anyone with TypeScript errors: const playground = {
settings: {
'editor.cursorShape': 'line',
} as any,
}; |
…yground. This solves a problem with the text cursor caret not being visible in the operation input box within GraphQL Playground by explicitly setting a GraphQL Playground configuration option called `cursorShape` to `line`. All credit for the actual solution goes to @lpellegr for their discovery in graphql/graphql-playground#790 (comment)
* Specify explicit `cursorShape` to avoid missing cursor in GraphQL Playground. This solves a problem with the text cursor caret not being visible in the operation input box within GraphQL Playground by explicitly setting a GraphQL Playground configuration option called `cursorShape` to `line`. All credit for the actual solution goes to @lpellegr for their discovery in graphql/graphql-playground#790 (comment) * Update CHANGELOG.md
Adding this works for me, as mentioned above.
I don't see how this has not been fixed in a release yet. I can open a PR but please make sure this fix goes into the next release. This is extremely annoying and time consuming trying to click around and type correctly. |
It should be finally fixed. Sorry for troubles, if somebody encounters it open it again please. |
I just encountered the problem. not sure what other info i can give you |
@icoderight What version of playground do you use? |
Personally, I stopped my Dark mode extension (Dark Reader) and the cursor came back. ;p |
This one did the trick for me! |
This issue pertains to the following package(s):
What OS and OS version are you experiencing the issue(s) on?
Ubuntu 18.04 (under Firefox and Chrome).
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
graphql-playground-html 1.6.0 (as a dependency of apollo-server).
What is the expected behavior?
A cursor is displayed where I input the text.
What is the actual behavior?
No cursor is visible, I don't know where the text I type will be inserted.
In the HTML, the cursor is present and blinking, but with transparent background-color.
What steps may we take to reproduce the behavior?
Open GraphQL Playground.
Please provide a gif or image of the issue for a quicker response/fix.
(it's a static image, but a video gives the same result)
The text was updated successfully, but these errors were encountered: