-
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
browser: Modal Dialog fixed display issues #10245
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.
Hi @Archie27376, thank you for taking care of this issue!
I think the original issue is a bit outdated, since the styling of the close button seems already correct, see the following comparison with vscode (Browser):
Theia, current:
Instead, I'm a bit more worried about the missing detail line detail content
(see vscode image) and the size and color of the info icon.
Do you mind reverting the current changes to the dialog.css
and addressing the detail line and icon issue?
For the icon colors, you can take inspiration from another style sheet:
theia/packages/markers/src/browser/style/index.css
Lines 50 to 68 in 3c13794
.theia-marker-container .error { | |
color: var(--theia-editorError-foreground); | |
opacity: 1; | |
} | |
.theia-marker-container .warning { | |
color: var(--theia-editorWarning-foreground); | |
opacity: 1; | |
} | |
.theia-marker-container .information { | |
color: var(--theia-editorInfo-foreground); | |
opacity: 1; | |
} | |
.theia-marker-container .hint { | |
color: var(--theia-successBackground); | |
opacity: 1; | |
} |
9752d2b
to
0e98755
Compare
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.
Thanks, that looks way better already. I have one remark left regarding the detail html node.
f6f5d4d
to
e1c7eb5
Compare
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.
Almost done, just two small adjustments:
- Please set the margin of the
p
node inside of the.detail
class to have this value (to decrease the amount of vertical white space under the detail node):calc(var(--theia-ui-padding) * 2) 0px 0px 0px;
- Move the Changes from the
dialog.css
files to themodal-notification.css
and change the.icon .fa
rule to.icon .codicon
. That should remove the need for all the.codicon
rules that you added in thedialog.css
file. (but please increase the font-size, 120% seems too small)
packages/plugin-ext/src/main/browser/dialogs/style/modal-notification.css
Outdated
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/dialogs/style/modal-notification.css
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/dialogs/style/modal-notification.css
Outdated
Show resolved
Hide resolved
328002a
to
1c63cd0
Compare
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.
Thanks, looks great!
Fixes a bug introduced by #10245 which prevented plugin notifications from being shown
…10399) Fixes a bug introduced by eclipse-theia#10245 which prevented plugin notifications from being shown
What it does
fixes #8090
Changes made:
close
button to readCancel
instead to be similar to vscodeCancel
button switched to the accent color of the modal dialogTheia
title to display the application's name insteadHow to test
yarn browser start
F1
to access the command palette and typeDialog: Open Modal
Review checklist
Reminder for reviewers