-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix icon names #17391
fix icon names #17391
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,9 +274,7 @@ export default function CollectibleDetails({ collectible }) { | |
handleSourceCopy(collectibleImageURL); | ||
}} | ||
iconName={ | ||
sourceCopied | ||
? ICON_NAMES.COPY_SUCCESS_FILLED | ||
: ICON_NAMES.COPY_FILLED | ||
sourceCopied ? ICON_NAMES.COPY_SUCCESS : ICON_NAMES.COPY | ||
} | ||
/> | ||
</Box> | ||
|
@@ -331,9 +329,7 @@ export default function CollectibleDetails({ collectible }) { | |
handleAddressCopy(address); | ||
}} | ||
iconName={ | ||
addressCopied | ||
? ICON_NAMES.COPY_SUCCESS_FILLED | ||
: ICON_NAMES.COPY_FILLED | ||
addressCopied ? ICON_NAMES.COPY_SUCCESS : ICON_NAMES.COPY | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
/> | ||
</Box> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ export const SnapDelineator = ({ snapName, children }) => { | |
paddingTop={1} | ||
paddingBottom={1} | ||
> | ||
<Icon name="snaps-filled" color={COLORS.INFO_DEFAULT} size={SIZES.SM} /> | ||
<Icon name="snaps" color={COLORS.INFO_DEFAULT} size={SIZES.SM} /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<Text | ||
variant={TEXT.BODY_SM} | ||
color={COLORS.INFO_DEFAULT} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,7 @@ import { BannerBase, Icon, ICON_NAMES } from '../../component-library'; | |
|
||
<BannerBase | ||
title="Start accessory demo" | ||
startAccessory={<Icon name={ICON_NAMES.INFO_FILLED} size={SIZES.LG} />} | ||
startAccessory={<Icon name={ICON_NAMES.INFO} size={SIZES.LG} />} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
> | ||
The info icon on the left is passed through the startAccessory prop | ||
</BannerBase>; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ export const BannerBase = ({ | |
{onClose && ( | ||
<ButtonIcon | ||
className="mm-banner-base__close-button" | ||
iconName={ICON_NAMES.CLOSE_OUTLINE} | ||
iconName={ICON_NAMES.CLOSE} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
size={SIZES.SM} | ||
ariaLabel="Close" // TODO: i18n | ||
onClick={onClose} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,7 @@ DefaultStory.args = { | |
title: 'Title is sentence case no period', | ||
children: "Description shouldn't repeat title. 1-3 lines.", | ||
actionButtonLabel: 'Action', | ||
startAccessory: <Icon name={ICON_NAMES.INFO_FILLED} size={SIZES.LG} />, | ||
startAccessory: <Icon name={ICON_NAMES.INFO} size={SIZES.LG} />, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
}; | ||
|
||
DefaultStory.storyName = 'Default'; | ||
|
@@ -165,5 +165,5 @@ StartAccessory.args = { | |
title: 'Start accessory demo', | ||
children: | ||
'The info icon on the left is passed through the startAccessory prop', | ||
startAccessory: <Icon name={ICON_NAMES.INFO_FILLED} size={SIZES.LG} />, | ||
startAccessory: <Icon name={ICON_NAMES.INFO} size={SIZES.LG} />, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,7 +225,7 @@ export default function PrivacySettings() { | |
e.preventDefault(); | ||
dispatch(showModal({ name: 'ONBOARDING_ADD_NETWORK' })); | ||
}} | ||
icon={<Icon name="add-outline" marginRight={2} />} | ||
icon={<Icon name="add" marginRight={2} />} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
> | ||
{t('onboardingAdvancedPrivacyNetworkButton')} | ||
</Button> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before
After