Skip to content

Commit 2723566

Browse files
committed
fix Avatar color-scheme
1 parent 6ef02a3 commit 2723566

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/main/src/Dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class Dialog extends Popup {
222222
* @returns {Promise} Resolves when the dialog is open
223223
* @public
224224
*/
225-
async show(preventInitialFocus) {
225+
async show(preventInitialFocus = false) {
226226
await super._open(preventInitialFocus);
227227
}
228228

packages/main/src/themes/Avatar.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@
122122
height: 100%;
123123
}
124124

125-
:host(:not([background-color]):not([_has-image])),
126-
:host([_background-color="Accent6"]),
127-
:host([background-color="Accent6"]) {
125+
:host(:not([color-scheme]):not([_has-image])),
126+
:host([_color-scheme="Accent6"]),
127+
:host([color-scheme="Accent6"]) {
128128
background-color: var(--ui5-avatar-accent6);
129129
}
130130

0 commit comments

Comments
 (0)