1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Update Label component font weight from bold to medium (#19731)

* Update Label component font weight from bold to medium

* update snapshot

* fix snapshots

* fix snapshots 2

* Removeing deprecated constants for enums

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
This commit is contained in:
jainex 2023-06-27 01:29:04 +05:30 committed by GitHub
parent ec7e7fdf6d
commit c1c6c8237a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 20 additions and 20 deletions

View File

@ -63,7 +63,7 @@ exports[`Eth Sign Modal should match snapshot 1`] = `
type="checkbox" type="checkbox"
/> />
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="eth-sign__checkbox" for="eth-sign__checkbox"
> >
<span <span

View File

@ -80,7 +80,7 @@ exports[`Export PrivateKey Modal should match snapshot 1`] = `
class="box box--padding-right-5 box--padding-left-5 box--display-flex box--flex-direction-column box--align-items-flex-start box--width-full" class="box box--padding-right-5 box--padding-left-5 box--display-flex box--flex-direction-column box--align-items-flex-start box--width-full"
> >
<label <label
class="box mm-text mm-label mm-text--body-sm mm-text--font-weight-bold box--margin-bottom-2 box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-text--body-sm mm-text--font-weight-medium box--margin-bottom-2 box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default"
> >
Type your MetaMask password Type your MetaMask password
</label> </label>

View File

@ -3,7 +3,7 @@
exports[`label should render text inside the label 1`] = ` exports[`label should render text inside the label 1`] = `
<div> <div>
<label <label
class="box mm-text mm-label mm-text--body-md mm-text--font-weight-bold box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-text--body-md mm-text--font-weight-medium box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default"
> >
label label
</label> </label>

View File

@ -1,13 +1,13 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import classnames from 'classnames'; import classnames from 'classnames';
import { Text } from '../text';
import { import {
FONT_WEIGHT, FontWeight,
TextVariant, TextVariant,
DISPLAY, Display,
AlignItems, AlignItems,
} from '../../../helpers/constants/design-system'; } from '../../../helpers/constants/design-system';
import { Text } from '../text';
export const Label = ({ htmlFor, className, children, ...props }) => ( export const Label = ({ htmlFor, className, children, ...props }) => (
<Text <Text
@ -19,8 +19,8 @@ export const Label = ({ htmlFor, className, children, ...props }) => (
as="label" as="label"
htmlFor={htmlFor} htmlFor={htmlFor}
variant={TextVariant.bodyMd} variant={TextVariant.bodyMd}
fontWeight={FONT_WEIGHT.BOLD} fontWeight={FontWeight.Medium}
display={DISPLAY.INLINE_FLEX} display={Display.InlineFlex}
alignItems={AlignItems.center} alignItems={AlignItems.center}
{...props} {...props}
> >

View File

@ -61,7 +61,7 @@ exports[`Confirm Remove JWT should render correctly 1`] = `
class="box box--margin-left-2 box--display-flex box--flex-direction-column box--width-full" class="box box--margin-left-2 box--display-flex box--flex-direction-column box--width-full"
> >
<label <label
class="box mm-text mm-label mm-label--html-for custody-account-list__item__title mm-text--body-md mm-text--font-weight-bold box--margin-top-2 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for custody-account-list__item__title mm-text--body-md mm-text--font-weight-medium box--margin-top-2 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-0" for="address-0"
> >
<span <span
@ -71,7 +71,7 @@ exports[`Confirm Remove JWT should render correctly 1`] = `
</span> </span>
</label> </label>
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--margin-top-2 box--margin-right-3 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--margin-top-2 box--margin-right-3 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-0" for="address-0"
> >
<span <span
@ -118,7 +118,7 @@ exports[`Confirm Remove JWT should render correctly 1`] = `
class="box box--display-flex box--flex-direction-row box--justify-content-space-between" class="box box--display-flex box--flex-direction-row box--justify-content-space-between"
> >
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-0" for="address-0"
/> />
</div> </div>

View File

@ -3,7 +3,7 @@
exports[`CustodyLabels Component should render correctly 1`] = ` exports[`CustodyLabels Component should render correctly 1`] = `
<div> <div>
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-index" for="address-index"
> >
<p <p

View File

@ -12,7 +12,7 @@ exports[`NoteToTrader should render the Note to trader component 1`] = `
class="box note-header box--display-flex box--flex-direction-row box--justify-content-space-between" class="box note-header box--display-flex box--flex-direction-row box--justify-content-space-between"
> >
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="transaction-note" for="transaction-note"
> >
Transaction note Transaction note

View File

@ -27,7 +27,7 @@ exports[`CustodyAccountList renders accounts 1`] = `
class="box box--margin-left-2 box--display-flex box--flex-direction-column box--width-full" class="box box--margin-left-2 box--display-flex box--flex-direction-column box--width-full"
> >
<label <label
class="box mm-text mm-label mm-label--html-for custody-account-list__item__title mm-text--body-md mm-text--font-weight-bold box--margin-top-2 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for custody-account-list__item__title mm-text--body-md mm-text--font-weight-medium box--margin-top-2 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-0" for="address-0"
> >
<span <span
@ -37,7 +37,7 @@ exports[`CustodyAccountList renders accounts 1`] = `
</span> </span>
</label> </label>
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--margin-top-2 box--margin-right-3 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--margin-top-2 box--margin-right-3 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-0" for="address-0"
> >
<span <span
@ -103,7 +103,7 @@ exports[`CustodyAccountList renders accounts 1`] = `
class="box box--margin-left-2 box--display-flex box--flex-direction-column box--width-full" class="box box--margin-left-2 box--display-flex box--flex-direction-column box--width-full"
> >
<label <label
class="box mm-text mm-label mm-label--html-for custody-account-list__item__title mm-text--body-md mm-text--font-weight-bold box--margin-top-2 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for custody-account-list__item__title mm-text--body-md mm-text--font-weight-medium box--margin-top-2 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-1" for="address-1"
> >
<span <span
@ -113,7 +113,7 @@ exports[`CustodyAccountList renders accounts 1`] = `
</span> </span>
</label> </label>
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--margin-top-2 box--margin-right-3 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--margin-top-2 box--margin-right-3 box--margin-left-2 box--display-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="address-1" for="address-1"
> >
<span <span

View File

@ -80,7 +80,7 @@ exports[`Reveal Seed Page should match snapshot 1`] = `
</div> </div>
<form> <form>
<label <label
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-bold box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default" class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default"
for="password-box" for="password-box"
> >
Enter password to continue Enter password to continue