graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

Cursor invisible in default theme

Open joeflack4 opened this issue 5 years ago • 5 comments

Description

Cursor is not visible with default theme / settings in GraphiQL.

In the image below, my cursor was located at the of the line reading "id". However, either I am partially color blind and did not know it, or it is essentially invisible to the naked eye.

screen shot 2018-07-22 at 1 39 50 pm

joeflack4 avatar Jul 22 '18 17:07 joeflack4

I fix it by myself.I use chrome extends stylish, and create a rule.The point is .CodeMirror-cursor have a transport background.I use a rule cover it. .CodeMirror-cursor { background: #fff!important; }

ghost avatar Jul 30 '18 06:07 ghost

@KennyWho Sounds great! I will use that for now.

joeflack4 avatar Jul 31 '18 23:07 joeflack4

Any other way to fix this issue? Don't want to install a browser extension just for this.

eljenso avatar Aug 22 '18 10:08 eljenso

+1

vinniejames avatar Sep 07 '18 20:09 vinniejames

Two other workarounds that both worked for me:

https://github.com/prisma/graphql-playground/issues/790#issuecomment-409221277 https://github.com/prisma/graphql-playground/issues/790#issuecomment-407153297

jhalborg avatar Oct 08 '18 07:10 jhalborg

graphiql@2 comes with completely reworked styles, in particular for the CodeMirror editors. This issue should now be fixed.

thomasheyenbrock avatar Sep 05 '22 21:09 thomasheyenbrock