Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit d8ff359

Browse files
authored
fix: correct Alert variant on SubmitErrorAlert (#594)
1 parent 06b4de2 commit d8ff359

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/SubmitErrorAlert/__tests__/__snapshots__/index.spec.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
7171
pointer-events: none;
7272
}
7373
74-
.cache-1ehs544-alertStyles {
74+
.cache-1v4uk27-alertStyles {
7575
display: -webkit-box;
7676
display: -webkit-flex;
7777
display: -ms-flexbox;
@@ -94,8 +94,8 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
9494
flex-wrap: nowrap;
9595
border-radius: 4px;
9696
padding: 16px;
97-
background-color: #ffefe6;
98-
color: #cc4e18;
97+
background-color: #ffe1e7;
98+
color: #a6102d;
9999
}
100100
101101
.cache-bqy7up-sizeStyles {
@@ -149,7 +149,7 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
149149
</div>
150150
</button>
151151
<div
152-
class="cache-1ehs544-alertStyles eenhiht2"
152+
class="cache-1v4uk27-alertStyles eenhiht2"
153153
>
154154
<svg
155155
class="cache-bqy7up-sizeStyles etwatq50"

src/components/SubmitErrorAlert/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const SubmitErrorAlert = <FormValues,>({
99
<FormSpy<FormValues> subscription={{ submitError: true }}>
1010
{({ submitError }) =>
1111
submitError ? (
12-
<Alert className={className} variant="warning">
12+
<Alert className={className} variant="danger">
1313
{submitError}
1414
</Alert>
1515
) : null

0 commit comments

Comments
 (0)