1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Update BannerAlert icon to match Figma Issue#20355 (#20407)

* changed warning --> danger

* snapshot updates

* Adding comment

* Updating snapshot

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
This commit is contained in:
Bhavya gor 2023-08-15 20:50:02 +05:30 committed by GitHub
parent 0ca4a3c457
commit b0fcb12b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ exports[`Blockaid Banner Alert should render 'warning' UI when securityAlertResp
>
<span
class="mm-box mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-warning-default"
style="mask-image: url('./images/icons/warning.svg');"
style="mask-image: url('./images/icons/danger.svg');"
/>
<div>
<h5
@ -76,7 +76,7 @@ exports[`Blockaid Banner Alert should render 'warning' UI when securityAlertResp
>
<span
class="mm-box mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-warning-default"
style="mask-image: url('./images/icons/warning.svg');"
style="mask-image: url('./images/icons/danger.svg');"
/>
<div>
<h5
@ -123,7 +123,7 @@ exports[`Blockaid Banner Alert should render details when provided 1`] = `
>
<span
class="mm-box mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-warning-default"
style="mask-image: url('./images/icons/warning.svg');"
style="mask-image: url('./images/icons/danger.svg');"
/>
<div>
<h5

View File

@ -26,7 +26,7 @@ export const BannerAlert = ({
};
case Severity.Warning:
return {
name: IconName.Warning,
name: IconName.Danger, // Uses same icon as danger
color: IconColor.warningDefault,
};
case Severity.Success:

View File

@ -319,7 +319,7 @@ exports[`ConfirmSendEther should render correct information for for confirm send
>
<span
class="mm-box mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-warning-default"
style="mask-image: url('./images/icons/warning.svg');"
style="mask-image: url('./images/icons/danger.svg');"
/>
<div>
<p