Skip to content

Commit 8f9d93c

Browse files
committed
Use a CSS class and compound variable
1 parent 768a463 commit 8f9d93c

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

res/css/_components.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@
362362
@import "./views/settings/encryption/_EncryptionCard.pcss";
363363
@import "./views/settings/encryption/_EncryptionCardEmphasisedContent.pcss";
364364
@import "./views/settings/encryption/_RecoveryPanelOutOfSync.pcss";
365+
@import "./views/settings/encryption/_ResetIdentityPanel.pcss";
365366
@import "./views/settings/tabs/_SettingsBanner.pcss";
366367
@import "./views/settings/tabs/_SettingsIndent.pcss";
367368
@import "./views/settings/tabs/_SettingsSection.pcss";
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright 2024 New Vector Ltd.
3+
*
4+
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
5+
* Please see LICENSE files in the repository root for full details.
6+
*/
7+
8+
// Red text for the "Do not close this window" warning
9+
.mx_ResetIdentityPanel_warning {
10+
color: var(--cpd-color-text-critical-primary);
11+
}

src/components/views/settings/encryption/ResetIdentityPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function ResetIdentityPanel({ onCancelClick, onFinish, variant }: ResetId
101101
</Button>
102102
{inProgress ? (
103103
<EncryptionCardEmphasisedContent>
104-
<span className="text-warning">
104+
<span className="mx_ResetIdentityPanel_warning">
105105
{_t("settings|encryption|advanced|do_not_close_warning")}
106106
</span>
107107
</EncryptionCardEmphasisedContent>

0 commit comments

Comments
 (0)