-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Blinking cursor (almost) not viewable in edit boxes since 1.14 #15644
Comments
Must be something in your setup but try this CSS: .CodeMirror-cursor {
border-color: var(--color-text) !important;
} |
In Chrome, you can probably go to the Sources tab, select any css file and paste the code there. That force dark mode setting can not detect Codemirror's fake cursors (which actually are borders), so that's why it's misbehaving. I'm not sure if our CSS is enough to overrule that mechanism. I'd generally recommend against it as we already implement a dark theme. BTW this is another issue we would not face with a regular text area, e.g. #10729 / #15394 :) |
ok, thanks, it worked by pasting it into the Is this something that can be fixed in 1.14 ? or if not do you know which commits changed it so that I can revert it for myself :) It's not possible with chrome to disable the "forced dark mode" only for one site, it's an all or nothing option :( |
Will file a PR later. |
* Add caret styling CSS Fixes: #15644 * add rule in arc-green as well * grammar * Update web_src/less/themes/theme-arc-green.less Co-authored-by: Wim <wim@42.be> * remove extra rule * add comment Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Wim <wim@42.be> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add caret styling CSS Fixes: go-gitea#15644 * add rule in arc-green as well * grammar * Update web_src/less/themes/theme-arc-green.less Co-authored-by: Wim <wim@42.be> * remove extra rule * add comment Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Wim <wim@42.be> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Description
I'm using Chrome or Edge with forced dark mode (
chrome://flags/#enable-force-dark
) with the arc-green theme.Blinking cursor is almost invisible in 1.14 it's a very faint cursor (1pixel?) it's fine in 1.13.
This only happens in the edit boxes with the editor, the cursor in the title of the issues etc is ok.
Devtools show it's in the
CodeMirror-scroll
element.Screenshots
1.14
If you squint you can see it ;-)
1.13
The text was updated successfully, but these errors were encountered: