-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[docs] Make it easier to find material icons #16956
Conversation
36c9319
to
51451e5
Compare
Details of bundle changes.Comparing: 7d01949...f8b658e
|
Great start!
We could build it as a separate site, and use a Netlify path rewrite. The icons don't change very often, so no need to build this page every time. What do you think about using a radio style input for the "theme" selection (the same as ant and the officials icons page)? I find switching between styles makes it easier to compare them. Being able to select none also seems odd. :) The preview list of icons should ideally show the icon name (again, same as ant and the official icon docs, as well as font awesome, and semantic ui FA, and...). Perhaps we should show the import name rather than the snake-cased ones? |
c1e64f6
to
30948f5
Compare
I think that a good option is to wait to see if people are using the page before investing time in speeding up the Netlify build (because otherwise, we could revert this PR). On this time build concern, I have run a test, not importing the API markdowns saves 3 minutes. This is strange.
I have wondered about it. I find it interesting to display both as you might use different variants in the app. For instance, you might use the filled for the selected state and outlined when unselected. You probably want to see both.
I have wondered about this one. I like how ionicons.com doesn't display anything. I think that it helps to pick an icon without been biased by the label. But I don't think strongly. Given your feedback and the fact that font awesome do it, I'm changing it. |
262adaa
to
9a4e2c3
Compare
5044ce3
to
777e1a6
Compare
LGTM! I'm excited to use it :D |
In that case you probably want to toggle between them. Let's go with radios. Overall the checkboxes have poor UX. Should the dialog be bigger? (truncated import path) There's a stray keyboard focus indicator after closing the dialog (Chrome), and some of the names are truncated (more whitespace needed?): |
dd4a443
to
4f4cd56
Compare
4f4cd56
to
dec1212
Compare
I think that the problem solved with the display of multiple variants is that it makes it easier to compare them, to pick the one you like most. At least, it has been my use case recently with https://oblador.github.io/react-native-vector-icons/. I'm wondering why Fontawesome uses this checkbox approach.
I have tried with a bigger dialog, I felt it was creating too much distraction (a larger surface to spend attention on). I have disabled the overflow on the import markdown so we don't see an ugly scrollbar. As soon as you click the area, we select the whole thing. In a sense, you don't need to see everything. Maybe enabling the scroll would be a better tradeoff?
Yes, it's meant to so that people remember on which icon they clicked. It then easier to move to the next one.
Ah nice, thanks! I wanted to add an overflow ellipsis, but forgot about it. |
That's fair. There's already a fair bit of whitespace, and that could perhaps be more evenly distributed, but good enough for now.
I hadn't realised it scrolls when you click it. I guess I didn't interact with it enough. That's good enough. |
I don't know. Ok, let's change it. I have no idea which approach would be more useful, if you have a conviction it's better, let's go for it! |
Done. Figured since I asked for the change that I should do the work. Hope I got it right! 😅 |
One thing I noticed working with the smaller set of icon imports is that of course the sort order is affected by the suffix. Not sure there's much we can do about it! |
Awesome, I was about to give it a spin, perfect timing ✨. |
* [docs] Make it easier to find material icons * Josh review * Matt feedback, add ellipsis * Use radio for icon themes * add josh suggestion
* [docs] Make it easier to find material icons * Josh review * Matt feedback, add ellipsis * Use radio for icon themes * add josh suggestion
This looks awesome 😍 |
I have invested 2 hours in the early prototype. I want to see if our Netlify infrastructure can handle the 5k icons and the performance in production mode.The build is 60s slower comparing two, to refine. Client-side perf are OK-ish, need to reduce the debounce.https://deploy-preview-16956--material-ui.netlify.com/components/material-icons/
The problem
TODO
Future
Closes #14984