-
Notifications
You must be signed in to change notification settings - Fork 2.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
scm: fixed focused border of scm textarea #7340
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine! Tested with browser, the git message bar has the desired border on focus.
Thank you for the quick solution, @vince-fugnitto 👍 From the changelog:
theia/packages/core/src/browser/style/index.css Lines 55 to 63 in 9457f80
The commit message <textarea class="theia-scm-input-message theia-input theia-scm-input-message-idle" id="theia-scm-input-message" placeholder="Message (press Cmd Enter to commit)" tabindex="1" rows="1" style="max-height: 132px; overflow: hidden; overflow-wrap: break-word; height: 30px;">inde</textarea> Does anyone know why do we need to treat the SCM |
@@ -102,7 +102,11 @@ | |||
} | |||
|
|||
.theia-scm-input-message-container textarea:not(:focus) { | |||
border: none; | |||
border: var(--theia-border-width) solid var(--theia-input-background); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
background color for border color? We should use semantically meaningful colors. Are you sure that there is a bug at all. In VS Code background is used for contrast, not border. Borders only for some elements or in HC theme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that there is a bug at all.
Yes: #7338 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but it should be --theia-input-border
color
Please see https://code.visualstudio.com/api/references/theme-color#input-control
input.border: Input box border.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also you can have a look at reference implementation from VS
Code: https://github.com/microsoft/vscode/blob/89906c073a8fc8e60f344c5623f5c73adcf039f1/src/vs/workbench/contrib/scm/browser/repositoryPane.ts#L1108-L1112
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but it should be
--theia-input-border
color
Well, ideally it should be nothing. The theia-input
CSS should work out of the box.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vince-fugnitto It is not about validation without any errors and focus border should be shown in HC theme as in VS Code. It cannot work if we use background color for border color.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vince-fugnitto It is not about validation without any errors and focus border should be shown in HC theme as in VS Code. It cannot work if we use background color for border color.
I have a pull-request handling the theming for validation: #7351
Would you like me to handle the hc
theme as well for inputs? I understand that hc
theming was omitted as part of the first iteration of theming support #6743
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HC theme is a way to reproduce the issue, it does not work for any theme which defines different input.border.
@vince-fugnitto, your changes seem to be incomplete. See the For the latter case, I would expect to have an orangeish color for the border; instead, it is the default border color. |
220f125
to
9e85a58
Compare
Thank you @kittaakos, I've updated the code: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`--theia-input-border` as the `outline-color` had no effect: #7340 (comment) Fixes #7834 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
`--theia-input-border` as the `outline-color` had no effect: #7340 (comment) Fixes #7834 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com
What it does
Fixes #7338
The following commit fixes the issue where the
scm
textarea does not display a focused state.Note: The change also updates the default border to the issue #3544 is not re-introduced.
How to test
scm
widgetReview checklist
Reminder for reviewers