Fix button border color of LeaveSpaceDialog (#8010)

pull/21833/head
Suguru Hirahara 2022-03-10 07:52:09 +00:00 committed by GitHub
parent 7b71a9fb65
commit 93bde40568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 46 deletions

View File

@ -19,10 +19,8 @@ limitations under the License.
display: flex;
flex-direction: column;
padding: 24px 32px;
}
}
.mx_LeaveSpaceDialog {
.mx_LeaveSpaceDialog {
width: 440px;
display: flex;
flex-direction: column;
@ -64,13 +62,6 @@ limitations under the License.
color: $primary-content;
}
}
.mx_Dialog_buttons {
margin-top: 20px;
.mx_Dialog_primary {
background-color: $alert !important; // override default colour
border-color: $alert;
}
}
}

View File

@ -105,6 +105,7 @@ const LeaveSpaceDialog: React.FC<IProps> = ({ space, onFinished }) => {
</div>
<DialogButtons
primaryButton={_t("Leave space")}
primaryButtonClass="danger"
onPrimaryButtonClick={() => onFinished(true, roomsToLeave)}
hasCancel={true}
onCancel={() => onFinished(false)}