1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00

[MMI] Fix wrong custody logo location (#20072)

* Added missing styles

* updated snapshots

* fixed snapshot

* updated snapshot
This commit is contained in:
Albert Olivé 2023-07-18 15:58:33 +02:00 committed by GitHub
parent f8bfb6cff5
commit a8716db694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 6 deletions

View File

@ -7,7 +7,7 @@ exports[`App Header should match snapshot 1`] = `
data-testid="app-header-logo"
>
<button
class="box app-header__logo-container app-header__logo-container--clickable box--flex-direction-row box--background-color-transparent"
class="mm-box app-header__logo-container app-header__logo-container--clickable mm-box--background-color-transparent"
data-testid="app-header-logo"
>
<svg

View File

@ -73,6 +73,7 @@
flex: 0 0 auto;
}
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
.custody-logo {
@media screen and (max-width: $break-small) {
display: none;
@ -84,6 +85,19 @@
}
}
.app-header__custody-logo {
&--icon {
height: 16px;
margin-left: 15px;
margin-top: 4px;
@media screen and (min-width: $break-large) {
display: none;
}
}
}
///: END:ONLY_INCLUDE_IN
.app-header__metafox-logo {
&--icon {
height: 32px;

View File

@ -3,7 +3,7 @@
exports[`MetaFoxLogo does match snapshot with custodyImgSrc 1`] = `
<div>
<button
class="box app-header__logo-container box--flex-direction-row box--background-color-transparent"
class="mm-box app-header__logo-container mm-box--background-color-transparent"
data-testid="app-header-logo"
>
<div />
@ -28,7 +28,7 @@ exports[`MetaFoxLogo does match snapshot with custodyImgSrc 1`] = `
exports[`MetaFoxLogo does not set icon height and width when unsetIconHeight is true 1`] = `
<div>
<button
class="box app-header__logo-container box--flex-direction-row box--background-color-transparent"
class="mm-box app-header__logo-container mm-box--background-color-transparent"
data-testid="app-header-logo"
>
<div />
@ -44,7 +44,7 @@ exports[`MetaFoxLogo does not set icon height and width when unsetIconHeight is
exports[`MetaFoxLogo should match snapshot with img width and height default set to 42 1`] = `
<div>
<button
class="box app-header__logo-container box--flex-direction-row box--background-color-transparent"
class="mm-box app-header__logo-container mm-box--background-color-transparent"
data-testid="app-header-logo"
>
<div />

View File

@ -1,7 +1,7 @@
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Box from '../box/box';
import { Box } from '../../component-library';
import { BackgroundColor } from '../../../helpers/constants/design-system';
import MetaFoxHorizontalLogo from './horizontal-logo';

View File

@ -9,7 +9,7 @@ exports[`OnboardingAppHeader should match snapshot 1`] = `
class="onboarding-app-header__contents"
>
<button
class="box onboarding-app-header__logo-container box--flex-direction-row box--background-color-transparent"
class="mm-box onboarding-app-header__logo-container mm-box--background-color-transparent"
data-testid="app-header-logo"
>
<svg