Skip to content
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

Fix focus border around editors with transparent background #209368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KurtGokhan
Copy link

@KurtGokhan KurtGokhan commented Apr 2, 2024

@KurtGokhan KurtGokhan changed the title focus-border-fix Fix focus border around editors with transparent background Apr 2, 2024
@DonJayamanne DonJayamanne assigned hediet and unassigned DonJayamanne Apr 2, 2024
.monaco-diff-editor input[type=search]:focus,
.monaco-diff-editor input[type=text]:focus,
.monaco-diff-editor select:focus,
.monaco-diff-editor textarea:focus {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you ignoring the non-diff editors? shouldn't it be something like

.monaco-editor .synthetic-focus, .monaco-diff-editor .synthetic-focus,
.monaco-editor [tabindex="0"]:focus,, .monaco-diff-editor [tabindex="0"]:focus,
.monaco-editor [tabindex="-1"]:focus, .monaco-diff-editor [tabindex="-1"]:focus,
...

?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the initial intention behind the change. So can't tell for sure. @hediet can you chime in?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the feeling what was attempted was (.monaco-editor, .monaco-diff-editor) .synthetic-focus, which unfortunately doesn't exist in css

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue that was fixed was about the diff editor. That is why I think .monaco-editor isn't relevant.

@hediet hediet added this to the May 2024 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] There is always a focus-border around editor when editor background is transparent
5 participants