Skip to content

add inverted info icon, and update props#10305

Merged
brad-decker merged 2 commits intodevelopfrom
add-inverted-info-icon
Feb 1, 2021
Merged

add inverted info icon, and update props#10305
brad-decker merged 2 commits intodevelopfrom
add-inverted-info-icon

Conversation

@brad-decker
Copy link
Copy Markdown
Contributor

@brad-decker brad-decker commented Jan 28, 2021

Rationale

We have two versions of the info icon, one where the border/icon has color applied and one where the info icon is white, and the background has color applied. This pull request adds the inverted version and adds some constants to handle the different options for choosing which color to apply from the design system. Also updates the icon scss to use the proper variables from the design-system. One minor unrelated change is updating the color of the icon-outline.

@brad-decker brad-decker requested a review from a team as a code owner January 28, 2021 19:35
@brad-decker brad-decker requested a review from danjm January 28, 2021 19:35
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [03e88a9]
Page Load Metrics (581 ± 13 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint45725684
domContentLoaded5486465802613
load5496475812613
domInteractive5476465802613

Copy link
Copy Markdown
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

rekmarks
rekmarks previously approved these changes Feb 1, 2021
Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (I also suspect @danjm intended to approve)

}

InfoIconInverted.propTypes = {
severity: PropTypes.oneOf(Object.keys(SEVERITIES)),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is wrong, should be Object.values. I'm gonna fixup and then repush

@brad-decker
Copy link
Copy Markdown
Contributor Author

additional changes isolated in new commit, involved fix for prop types, a couple additional usage updates to use the constants, and adding InfoIcon and InfoIconInverted to the storybook stories.

@brad-decker brad-decker requested review from danjm and rekmarks February 1, 2021 17:42
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [b157976]
Page Load Metrics (915 ± 40 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaintNaNNaNNaNNaNNaN
domContentLoaded75911309138440
load75911319158440
domInteractive75811299128440

@brad-decker brad-decker merged commit 9269615 into develop Feb 1, 2021
@brad-decker brad-decker deleted the add-inverted-info-icon branch February 1, 2021 18:10
@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants