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

Fix button border color of LeaveSpaceDialog #8010

Merged
merged 2 commits into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions res/css/views/dialogs/_LeaveSpaceDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ limitations under the License.
color: $primary-content;
}
}

.mx_Dialog_buttons {
.mx_Dialog_primary {
background-color: $alert;
border-color: $alert;
}
}
}
}
}
1 change: 1 addition & 0 deletions src/components/views/dialogs/LeaveSpaceDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const LeaveSpaceDialog: React.FC<IProps> = ({ space, onFinished }) => {
</div>
<DialogButtons
primaryButton={_t("Leave space")}
primaryButtonClass="danger"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This makes styling with .mx_Dialog_buttons unnecessary.

onPrimaryButtonClick={() => onFinished(true, roomsToLeave)}
hasCancel={true}
onCancel={() => onFinished(false)}
Expand Down