-
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
Ux: Icon: Update fa-eye with ICON_NAMES.EYE #17800
Conversation
I'm wondering, where did the new icons come from? If we didn't individually select them by using a bundled set, I wonder if we should consider preserving some old icons and integrating them into the new system |
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
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.
LGTM - once you fix linting issues
739ee03
to
9a84f3a
Compare
Hey @digiwand, I believe Sara decided on the initial set of icons based on the IA/Nav redesign but we are working to be backwards compatible with what already exists in the extension. Adding the ones we are missing could be a good solution for the time being cc @Akatori-Design https://www.figma.com/file/Ne19tqQetZUNFBPROgu3qm/Icon-Audit?node-id=104%3A109&t=rb33g7TdF27DACsz-1 |
@georgewrmarshall I see. Thanks for the info! |
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.
Lgtm!
Builds ready [66bf33d]
Page Load Metrics (1559 ± 36 ms)
Bundle size diffs
|
///: END:ONLY_INCLUDE_IN | ||
import { Icon, ICON_NAMES } from '../../components/component-library'; | ||
import { Color } from '../constants/design-system'; | ||
import { coinTypeToProtocolName, getSnapDerivationPathName } from './util'; // eslint-disable-line no-unused-vars |
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.
[suggestion] I believe we could replace lines 18-21 w/
import { Icon, ICON_NAMES } from '../../components/component-library';
import { Color } from '../constants/design-system';
///: BEGIN:ONLY_INCLUDE_IN(flask)
import { SNAPS_METADATA } from '../../../shared/constants/snaps';
import { coinTypeToProtocolName, getSnapDerivationPathName } from './util';
///: END:ONLY_INCLUDE_IN
to avoid // eslint-disable-line no-unused-vars
Explanation
Removes the usage of both the
fa-eye
withICON_NAMES.EYE
Screenshots/Screencaps
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.