Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 93bde40

Browse files
authored
Fix button border color of LeaveSpaceDialog (#8010)
1 parent 7b71a9f commit 93bde40

File tree

2 files changed

+38
-46
lines changed

2 files changed

+38
-46
lines changed

res/css/views/dialogs/_LeaveSpaceDialog.scss

Lines changed: 37 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -19,58 +19,49 @@ limitations under the License.
1919
display: flex;
2020
flex-direction: column;
2121
padding: 24px 32px;
22-
}
23-
}
2422

25-
.mx_LeaveSpaceDialog {
26-
width: 440px;
27-
display: flex;
28-
flex-direction: column;
29-
flex-wrap: nowrap;
30-
height: 520px;
23+
.mx_LeaveSpaceDialog {
24+
width: 440px;
25+
display: flex;
26+
flex-direction: column;
27+
flex-wrap: nowrap;
28+
height: 520px;
3129

32-
.mx_Dialog_content {
33-
flex-grow: 1;
34-
margin: 0;
35-
overflow-y: auto;
30+
.mx_Dialog_content {
31+
flex-grow: 1;
32+
margin: 0;
33+
overflow-y: auto;
3634

37-
.mx_LeaveSpaceDialog_section_warning {
38-
position: relative;
39-
border-radius: 8px;
40-
margin: 12px 0 0;
41-
padding: 12px 8px 12px 42px;
42-
background-color: $header-panel-bg-color;
35+
.mx_LeaveSpaceDialog_section_warning {
36+
position: relative;
37+
border-radius: 8px;
38+
margin: 12px 0 0;
39+
padding: 12px 8px 12px 42px;
40+
background-color: $header-panel-bg-color;
4341

44-
font-size: $font-12px;
45-
line-height: $font-15px;
46-
color: $secondary-content;
42+
font-size: $font-12px;
43+
line-height: $font-15px;
44+
color: $secondary-content;
4745

48-
&::before {
49-
content: '';
50-
position: absolute;
51-
left: 10px;
52-
top: calc(50% - 8px); // vertical centering
53-
height: 16px;
54-
width: 16px;
55-
background-color: $secondary-content;
56-
mask-repeat: no-repeat;
57-
mask-size: contain;
58-
mask-image: url('$(res)/img/element-icons/room/room-summary.svg');
59-
mask-position: center;
60-
}
61-
}
46+
&::before {
47+
content: '';
48+
position: absolute;
49+
left: 10px;
50+
top: calc(50% - 8px); // vertical centering
51+
height: 16px;
52+
width: 16px;
53+
background-color: $secondary-content;
54+
mask-repeat: no-repeat;
55+
mask-size: contain;
56+
mask-image: url('$(res)/img/element-icons/room/room-summary.svg');
57+
mask-position: center;
58+
}
59+
}
6260

63-
> p {
64-
color: $primary-content;
65-
}
66-
}
67-
68-
.mx_Dialog_buttons {
69-
margin-top: 20px;
70-
71-
.mx_Dialog_primary {
72-
background-color: $alert !important; // override default colour
73-
border-color: $alert;
61+
> p {
62+
color: $primary-content;
63+
}
64+
}
7465
}
7566
}
7667
}

src/components/views/dialogs/LeaveSpaceDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const LeaveSpaceDialog: React.FC<IProps> = ({ space, onFinished }) => {
105105
</div>
106106
<DialogButtons
107107
primaryButton={_t("Leave space")}
108+
primaryButtonClass="danger"
108109
onPrimaryButtonClick={() => onFinished(true, roomsToLeave)}
109110
hasCancel={true}
110111
onCancel={() => onFinished(false)}

0 commit comments

Comments
 (0)