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

Commit a576362

Browse files
authored
Merge pull request #6275 from matrix-org/gsouquet/toast-button-kind
2 parents 1874f3b + 96857ab commit a576362

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/views/toasts/GenericToast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const GenericToast: React.FC<XOR<IPropsExtended, IProps>> = ({
5050
{detailContent}
5151
</div>
5252
<div className="mx_Toast_buttons" aria-live="off">
53-
{onReject && rejectLabel && <AccessibleButton kind="danger" onClick={onReject}>
53+
{onReject && rejectLabel && <AccessibleButton kind="danger_outline" onClick={onReject}>
5454
{ rejectLabel }
5555
</AccessibleButton> }
5656
<AccessibleButton onClick={onAccept} kind="primary">

test/end-to-end-tests/src/usecases/toasts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function acceptToast(session, expectedTitle) {
4040

4141
async function rejectToast(session, expectedTitle) {
4242
await assertToast(session, expectedTitle);
43-
const btn = await session.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger');
43+
const btn = await session.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger_outline');
4444
await btn.click();
4545
}
4646

0 commit comments

Comments
 (0)