-
-
Notifications
You must be signed in to change notification settings - Fork 111
Mdi icons instead of fontastic icons #192
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
Conversation
ugh... I'm not sure I understand these errors @bpostlethwaite |
We expect node_modules files to be es5. But you are importing something from node_modules that is es6 and Nodejs doesn't understand the syntax. |
We'll Nodejs expects valid JS for whatever version of Nodejs is running Jest. Anyway you need to transport the icon code if you use es6. Otherwise you should write in es5 which most browsers and Nodejs versions support |
any objections on merging this one @bpostlethwaite @aulneau ? |
ok reviewing now |
I can't review it right now but it looks visually good to me! |
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.
One super tiny nit but this is great stuff! 💃
return { | ||
iconClass: 'menupanel__icon icon-question-circle', | ||
iconType: <QuestionIcon className="menupanel__icon" />, |
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.
This could just be named icon
as iconType
makes me think that it will be a string describing the type of icon.
line-height: 1; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} |
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.
👏
} | ||
.icon-link:before { | ||
content: '\67'; | ||
} |
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.
👏
display: flex; | ||
flex-grow: 1; | ||
} | ||
} | ||
|
||
@import 'shame'; |
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.
🎉
I'll merge for now @aulneau but if anything, can fix it in a subsequent pr |
here's how it looks like:

for reference: https://github.com/plotly/plotly-icons