Better solution for .editor-contents selector under the Shadow DOM?


#1

I’m updating my packages for the Shadow DOM change and got to white-cursor. Since on OS X the default text selection cursor is hard to see on a dark background, this replaces it with an all-white one. My CSS used to say:

.white-cursor .editor-contents {
  .white-cursor-image;
}

And now what I was able to find that works is:

.white-cursor atom-text-editor::shadow .editor-contents--private {
  .white-cursor-image;
}

Of course, I somehow doubt that the --private is a good thing, but I couldn’t find a better selector. Is there a better one?