Skip to content

Commit 04a2a98

Browse files
floriandurosgithub-actions[bot]
authored andcommitted
Fix e2e shield being invisible in white mode for encrypted room (#30408)
* fix: e2e icon for encrypted room * test(e2e): add screenshot for grey shield in encrypted room (cherry picked from commit c98358c)
1 parent acb3d31 commit 04a2a98

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

playwright/e2e/crypto/crypto.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ test.describe("Cryptography", function () {
158158
await page.getByRole("textbox", { name: "Send a message…" }).press("Enter");
159159
await checkDMRoom(page);
160160
const bobRoomId = await bobJoin(page, bob);
161+
await expect(page.locator(".mx_MessageComposer_e2eIcon")).toMatchScreenshot("composer-e2e-icon-normal.png");
162+
161163
await testMessages(page, bob, bobRoomId);
162164
await verify(app, bob);
163165

268 Bytes
Loading

res/css/views/rooms/_E2EIcon.pcss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ Please see LICENSE files in the repository root for full details.
5252

5353
.mx_E2EIcon_normal::after {
5454
mask-image: url("$(res)/img/e2e/normal.svg");
55-
background-color: white;
55+
background-color: var(--cpd-color-icon-tertiary);
56+
}
57+
58+
.mx_E2EIcon_verified {
59+
.mx_E2EIcon_normal::after {
60+
background-color: white;
61+
}
5662
}
5763

5864
.mx_E2EIcon_verified::after {

0 commit comments

Comments
 (0)