Set default cursor color to currentColor #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ocavue/color"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Change the default cursor color from
blacktocurrentColor. This makes the lib support dark mode by default, sincecurrentColorisblackin the light mode, and iswhitein the dark mode.Before:
https://github.com/user-attachments/assets/ff8d7433-4e4a-425d-968e-f2a8550bfbc8
After:
https://github.com/user-attachments/assets/5c82edcf-2a4f-4bab-a9ea-fc6b5cdb8322
It might have been a good idea to do it this way in the initial implementation, but at this point I think changing this would be too disruptive. The element is added to the editor's
offsetParent, which may have a completely differentcolorstyle than the editor itself. Since you can configure the color to becurrentColorvia the extension'scoloroption, I recommend you do that to address this issue in your setup.Thank you for pointing that out. Your reason makes a lot of sense.
Pull request closed